Changeset 490 for trunk/src/lua/lua_values.cc
- Timestamp:
- 03/08/16 13:19:59 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_values.cc
r454 r490 20 20 bool nv::lua::detail::is_userdata( lua_State *L, int index, const char* metatable ) 21 21 { 22 return luaL_testudata( L, index, metatable ) != 0;22 return nlua_testudata( L, index, metatable ) != 0; 23 23 } 24 24 25 25 void* nv::lua::detail::raw_check_userdata( lua_State *L, int index, const char* metatable ) 26 26 { 27 return luaL_testudata( L, index, metatable );27 return nlua_testudata( L, index, metatable ); 28 28 } 29 29 … … 31 31 { 32 32 void* result = lua_newuserdata(L, size); 33 luaL_setmetatable( L, metatable );33 nlua_setmetatable( L, metatable ); 34 34 return result; 35 35 } … … 47 47 void nv::lua::detail::push_unsigned( lua_State *L, lunsigned v ) 48 48 { 49 lua_pushunsigned( L, v );49 nlua_pushunsigned( L, v ); 50 50 } 51 51 … … 83 83 lunsigned nv::lua::detail::to_unsigned( lua_State *L, int index ) 84 84 { 85 return lua_tounsigned( L, index );85 return nlua_tounsigned( L, index ); 86 86 } 87 87 … … 131 131 lunsigned nv::lua::detail::to_unsigned( lua_State *L, int index, lunsigned def ) 132 132 { 133 return ( lua_type( L, index ) == LUA_TNUMBER ? lua_tounsigned( L, index ) : def );133 return ( lua_type( L, index ) == LUA_TNUMBER ? nlua_tounsigned( L, index ) : def ); 134 134 } 135 135
Note: See TracChangeset
for help on using the changeset viewer.