*** empty log message ***
[luabind.git] / test / test.h
blob3be64bb06a702b4bc3cc8e49ecd4a35f9522419c
1 #ifndef TEST_H_INCLUDED
2 #define TEST_H_INCLUDED
4 extern "C"
6 #include "lua.h"
7 #include "lualib.h"
10 #define LUABIND_NO_ERROR_CHECKING
11 //#define LUABIND_DONT_COPY_STRINGS
12 //#define LUABIND_NO_EXCEPTIONS
13 #define LUABIND_NO_HEADERS_ONLY
15 #include <luabind/luabind.hpp>
16 #include <luabind/dependency_policy.hpp>
17 #include <luabind/out_value_policy.hpp>
18 #include <luabind/adopt_policy.hpp>
19 #include <luabind/copy_policy.hpp>
20 #include <luabind/container_policy.hpp>
21 #include <luabind/discard_result_policy.hpp>
23 bool dostring(lua_State* L, const char* str);
24 int dostring2(lua_State* L, const char* str);
26 struct lua_closer
28 lua_State* L;
29 lua_closer(lua_State* L_): L(L_) {}
30 void release() { if (L) {lua_close(L); L = 0; } }
31 ~lua_closer() { if (L != 0) lua_close(L); }
35 bool test_operators();
36 bool test_attributes();
37 bool test_construction();
38 bool test_implicit_cast();
39 bool test_const();
40 bool test_exceptions();
41 bool test_null_pointer();
42 bool test_policies();
43 bool test_lua_classes();
44 bool test_free_functions();
45 bool test_object();
46 bool test_held_type();
47 bool test_iterator();
49 #endif