/[enigma]/enigma/src/lua.cc
ViewVC logotype

Diff of /enigma/src/lua.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by dheck, Thu Jan 23 22:41:00 2003 UTC revision 1.5 by dheck, Wed Feb 5 20:16:12 2003 UTC
# Line 44  using world::GridPos; Line 44  using world::GridPos;
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  //----------------------------------------------------------------------  //----------------------------------------------------------------------
# Line 386  lua::Init() Line 386  lua::Init()
386    
387  void lua::Shutdown()  void lua::Shutdown()
388  {  {
389      lua_close(state);      if (state) {
390            lua_close(state);
391            state = 0;
392        }
393  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26