1279377Simp// Copyright 2011 Google Inc.
2279377Simp// All rights reserved.
3279377Simp//
4279377Simp// Redistribution and use in source and binary forms, with or without
5279377Simp// modification, are permitted provided that the following conditions are
6279377Simp// met:
7279377Simp//
8279377Simp// * Redistributions of source code must retain the above copyright
9279377Simp//   notice, this list of conditions and the following disclaimer.
10279377Simp// * Redistributions in binary form must reproduce the above copyright
11279377Simp//   notice, this list of conditions and the following disclaimer in the
12279377Simp//   documentation and/or other materials provided with the distribution.
13279377Simp// * Neither the name of Google Inc. nor the names of its contributors
14279377Simp//   may be used to endorse or promote products derived from this software
15279377Simp//   without specific prior written permission.
16279377Simp//
17279377Simp// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18279377Simp// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19279377Simp// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20279377Simp// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21279377Simp// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22279377Simp// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23279377Simp// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24279377Simp// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25279377Simp// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26279377Simp// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27279377Simp// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28279377Simp
29279377Simp/// \file operations.hpp
30279377Simp/// Extra generic functions to interact with Lua.
31279377Simp
32279377Simp#if !defined(LUTOK_OPERATIONS_HPP)
33279377Simp#define LUTOK_OPERATIONS_HPP
34279377Simp
35279377Simp#include <map>
36279377Simp#include <string>
37279377Simp#include <vector>
38279377Simp
39279377Simp#include <lutok/state.hpp>
40279377Simp
41279377Simpnamespace lutok {
42279377Simp
43279377Simp
44279377Simpvoid create_module(state&, const std::string&,
45279377Simp                   const std::map< std::string, cxx_function >&);
46279377Simpunsigned int do_file(state&, const std::string&, const int, const int,
47279377Simp                     const int);
48279377Simpunsigned int do_string(state&, const std::string&, const int, const int,
49279377Simp                       const int);
50279377Simpvoid eval(state&, const std::string&, const int);
51279377Simp
52279377Simp
53279377Simp}  // namespace lutok
54279377Simp
55279377Simp#endif  // !defined(LUTOK_OPERATIONS_HPP)
56279377Simp