Teach adopt() to hold the adopted pointer in custom pointer type.
[luabind.git] / test / test_unsigned_int.cpp
blob99ae417e34e59a1683629305c032c205b60baa65
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)
5 #include "test.hpp"
6 #include <luabind/luabind.hpp>
8 void test_main(lua_State* L)
10 DOSTRING(L, "x = 4294967295");
12 unsigned int x = luabind::object_cast<unsigned int>(
13 luabind::globals(L)["x"]);
15 unsigned int y = 4294967295UL;
17 TEST_CHECK(x == y);