1 #include <boost/shared_ptr.hpp>
9 T
* get_pointer(boost::shared_ptr
<T
>& p
) { return p
.get(); }
23 ~held_type_test() { feedback
= 1; }
26 void tester(held_type_test
* t
)
31 } // anonymous namespace
36 // This feature is not finished yet
38 using namespace luabind;
40 lua_State* L = lua_open();
42 int top = lua_gettop(L);
46 function(L, "tester", &tester);
48 class_<held_type_test, boost::shared_ptr<held_type_test> >(L, "held_type_test")
52 object g = get_globals(L);
53 g["test"] = boost::shared_ptr<held_type_test>(new held_type_test());
54 if (dostring(L, "tester(test)")) return false;
55 if (feedback != 2) return false;
56 if (top != lua_gettop(L)) return false;
59 if (feedback != 1) return false;