44 |
|
|
45 |
namespace lua |
namespace lua |
46 |
{ |
{ |
47 |
lua_State *state = 0; // global LUA state |
lua_State *state = 0; // global Lua state |
48 |
int object_tag; // LUA tag for `Object's |
int object_tag; // Lua tag for `Object's |
49 |
} |
} |
50 |
|
|
51 |
//---------------------------------------------------------------------- |
//---------------------------------------------------------------------- |
386 |
|
|
387 |
void lua::Shutdown() |
void lua::Shutdown() |
388 |
{ |
{ |
389 |
lua_close(state); |
if (state) { |
390 |
|
lua_close(state); |
391 |
|
state = 0; |
392 |
|
} |
393 |
} |
} |