Changeset 490 for trunk/src/lua/lua_nova.cc
- Timestamp:
- 03/08/16 13:19:59 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_nova.cc
r437 r490 52 52 static bool nova_check_type_raw( lua_State * L, int iid, int ifield, int ivalue, int itype ) 53 53 { 54 iid = lua_absindex( L, iid );55 ifield = lua_absindex( L, ifield );56 ivalue = lua_absindex( L, ivalue );57 itype = lua_absindex( L, itype );54 iid = nlua_absindex( L, iid ); 55 ifield = nlua_absindex( L, ifield ); 56 ivalue = nlua_absindex( L, ivalue ); 57 itype = nlua_absindex( L, itype ); 58 58 59 59 switch ( lua_type( L, itype ) ) … … 101 101 static void nova_apply_blueprint_values_raw( lua_State * L, int ibase, int iproto, int iset, int iid ) 102 102 { 103 ibase = lua_absindex( L, ibase );104 iproto = lua_absindex( L, iproto );105 iset = lua_absindex( L, iset );106 iid = lua_absindex( L, iid );103 ibase = nlua_absindex( L, ibase ); 104 iproto = nlua_absindex( L, iproto ); 105 iset = nlua_absindex( L, iset ); 106 iid = nlua_absindex( L, iid ); 107 107 108 108 lua_pushnil( L ); … … 110 110 { 111 111 // Key -2, Value -1 112 int ikey = lua_absindex( L, -2 );113 int ivalue = lua_absindex( L, -1 );112 int ikey = nlua_absindex( L, -2 ); 113 int ivalue = nlua_absindex( L, -1 ); 114 114 115 115 // Base[Key] … … 202 202 static void nova_apply_blueprint_raw( lua_State * L, int ibase, int iproto, int iid ) 203 203 { 204 ibase = lua_absindex( L, ibase );205 iproto = lua_absindex( L, iproto );206 iid = lua_absindex( L, iid );204 ibase = nlua_absindex( L, ibase ); 205 iproto = nlua_absindex( L, iproto ); 206 iid = nlua_absindex( L, iid ); 207 207 nlua_tokeyset( L, ibase ); 208 int iset = lua_absindex( L, -1 );208 int iset = nlua_absindex( L, -1 ); 209 209 210 210 nova_apply_blueprint_values_raw( L, ibase, iproto, iset, iid ); … … 344 344 if ( lua_gettop( L ) == 1 ) lua_pushboolean( L, false ); 345 345 lua_settop( L, 2 ); 346 lua_pushglobaltable( L );346 nlua_pushglobaltable( L ); 347 347 lua_insert( L, 1 ); 348 348 lua_rawset( L, -3 ); … … 483 483 if ( lua_type( L, -1 ) == LUA_TSTRING ) 484 484 { 485 lua_pushglobaltable( L );485 nlua_pushglobaltable( L ); 486 486 lua_pushvalue( L, -2 ); 487 487 lua_rawget( L, -2 ); … … 680 680 lua_settop( L, 3 ); 681 681 682 lua_pushglobaltable( L );682 nlua_pushglobaltable( L ); 683 683 lua_pushvalue( L, 1 ); 684 684 lua_rawget( L, -2 ); … … 731 731 } 732 732 lua_settop( L, 3 ); 733 lua_pushglobaltable( L );733 nlua_pushglobaltable( L ); 734 734 735 735 lua_pushvalue( L, 1 ); … … 806 806 lua_setfield( L, LUA_REGISTRYINDEX, NV_BLUEPRINTS ); 807 807 808 luaL_requiref( L, "nova", luaopen_nova, 1 );808 nlua_requiref( L, "nova", luaopen_nova, 1 ); 809 809 lua_settop( L, stack ); 810 810 }
Note: See TracChangeset
for help on using the changeset viewer.