diff --git a/sol/simple_usertype_metatable.hpp b/sol/simple_usertype_metatable.hpp index 2c96f0b7..c33f54c6 100644 --- a/sol/simple_usertype_metatable.hpp +++ b/sol/simple_usertype_metatable.hpp @@ -31,8 +31,6 @@ namespace sol { namespace usertype_detail { - const lua_Integer toplevel_magic = static_cast(0x00000001); - struct variable_wrapper { virtual int index(lua_State* L) = 0; virtual int new_index(lua_State* L) = 0; diff --git a/sol/usertype_metatable.hpp b/sol/usertype_metatable.hpp index 8bc8502d..8f65e1b0 100644 --- a/sol/usertype_metatable.hpp +++ b/sol/usertype_metatable.hpp @@ -36,6 +36,7 @@ namespace sol { namespace usertype_detail { + const lua_Integer toplevel_magic = static_cast(0x00020001); struct add_destructor_tag {}; struct check_destructor_tag {};