Changeset 323 for trunk/src/lua/lua_nova.cc
- Timestamp:
- 08/26/14 04:03:10 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_nova.cc
r319 r323 9 9 #include "nv/lua/lua_raw.hh" 10 10 11 const char* NV_STATE = "NV_STATE";12 const char* NV_BLUEPRINTS = "NV_BLUEPRINTS";11 static const char* NV_STATE = "NV_STATE"; 12 static const char* NV_BLUEPRINTS = "NV_BLUEPRINTS"; 13 13 14 14 // static nv::lua::state* nova_get_state( lua_State * L ) … … 73 73 return true; 74 74 } 75 break; 75 76 case LUA_TSTRING : 76 77 if ( lua_type( L, ivalue ) != LUA_TTABLE ) … … 86 87 lua_concat( L, 3 ); 87 88 lua_call( L, 3, 0 ); 89 break; 88 90 case LUA_TNUMBER : 89 91 if (lua_tointeger( L, itype ) != lua_type( L, ivalue ) && lua_tointeger( L, itype ) > 0) … … 91 93 luaL_error( L, "lua.nova - \"%s.%s\" - type mismatch, %s expected, %s found!", lua_tolstring( L, iid, 0 ), lua_tolstring( L, ifield, 0 ), lua_typename( L, lua_tointeger( L, itype ) ), lua_typename( L, lua_type( L, ivalue ) ) ); 92 94 } 93 95 break; 96 default : return false; 94 97 } 95 98 return false; … … 784 787 785 788 786 int luaopen_nova( lua_State * L )789 static int luaopen_nova( lua_State * L ) 787 790 { 788 791 lua_createtable( L, 0, 0 );
Note: See TracChangeset
for help on using the changeset viewer.