1 // Copyright Daniel Wallin 2008. 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>
7 #include <luabind/adopt_policy.hpp>
15 struct X_wrap
: X
, luabind::wrap_base
28 void test_main(lua_State
* L
)
30 using namespace luabind
;
33 class_
<X
, X_wrap
>("X"),
34 def("make", &make
, adopt(result
)),
35 def("take", &take
, adopt(_1
))