Changeset 490 for trunk/src/lua/lua_state.cc
- Timestamp:
- 03/08/16 13:19:59 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_state.cc
r486 r490 67 67 void nv::lua::state_wrapper::push_global_table() 68 68 { 69 lua_pushglobaltable( m_state );69 nlua_pushglobaltable( m_state ); 70 70 } 71 71 … … 173 173 nv::size_t lua::table_guard::get_size() 174 174 { 175 return lua_rawlen( m_state, -1 );175 return nlua_rawlen( m_state, -1 ); 176 176 } 177 177 … … 272 272 { 273 273 lua_getfield( m_state, -1, element.data() ); 274 char result = ( lua_type( m_state, -1 ) == LUA_TSTRING && lua_rawlen( m_state, -1 ) > 0 ) ? lua_tostring( m_state, -1 )[0] : defval;274 char result = ( lua_type( m_state, -1 ) == LUA_TSTRING && nlua_rawlen( m_state, -1 ) > 0 ) ? lua_tostring( m_state, -1 )[0] : defval; 275 275 lua_pop( m_state, 1 ); 276 276 return result; … … 288 288 { 289 289 lua_getfield( m_state, -1, element.data() ); 290 unsigned result = lua_type( m_state, -1 ) == LUA_TNUMBER ? lua_tounsigned( m_state, -1 ) : defval;290 unsigned result = lua_type( m_state, -1 ) == LUA_TNUMBER ? nlua_tounsigned( m_state, -1 ) : defval; 291 291 lua_pop( m_state, 1 ); 292 292 return result; … … 364 364 365 365 lua_pushcfunction(m_state, luaopen_base); 366 lua_pushliteral(m_state, LUA_TABLIBNAME);366 lua_pushliteral(m_state, ""); 367 367 lua_call(m_state, 1, 0); 368 368 … … 524 524 void lua::state::deep_pointer_copy( int index, void* obj ) 525 525 { 526 index = lua_absindex( m_state, index );526 index = nlua_absindex( m_state, index ); 527 527 lua_newtable( m_state ); 528 528 lua_pushnil( m_state );
Note: See TracChangeset
for help on using the changeset viewer.