1 // Copyright Daniel Wallin 2009. Use, modification and distribution is
2 // subject to the Boost Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #include <luabind/luabind.hpp>
8 void test_main(lua_State
* L
)
12 " function X:__init()\n"
18 "assert(x.value == 1)\n"
19 "assert(x.second == 2)\n"
21 "assert(x.value == 2)\n"
22 "assert(x.second == 2)\n"
25 "assert(y.value == 1)\n"
26 "assert(y.second == 2)\n"
27 "assert(x.value == 2)\n"
28 "assert(x.second == 3)\n"