Changeset 333 for trunk/src/lua
- Timestamp:
- 09/17/14 14:18:10 (11 years ago)
- Location:
- trunk/src/lua
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_state.cc
r319 r333 261 261 lua_pushliteral(m_state, LUA_TABLIBNAME); 262 262 lua_call(m_state, 1, 0); 263 264 { 265 // Preregister 8 references for Handle registry 266 lua_newtable(m_state); 267 NV_ASSERT( luaL_ref( m_state, LUA_REGISTRYINDEX ) == 1, "First reference not 1!" ); 268 for ( uint32 i = 1; i < 8; ++i ) 269 { 270 lua_newtable(m_state); 271 luaL_ref( m_state, LUA_REGISTRYINDEX ); 272 } 273 } 263 274 264 275 if ( load_libs )
Note: See TracChangeset
for help on using the changeset viewer.