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

Diff of /enigma/lua.cc

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

revision 1.16 by dheck, Mon Sep 16 09:25:49 2002 UTC revision 1.17 by dheck, Sat Oct 26 23:48:16 2002 UTC
# Line 319  lua::Init() Line 319  lua::Init()
319      lua_mathlibopen(state);      lua_mathlibopen(state);
320      lua_iolibopen(state);      lua_iolibopen(state);
321    
322        tolua_enigma_open(state);
323        tolua_px_open(state);
324    
325      // Create a new tag for world::Object objects      // Create a new tag for world::Object objects
326      object_tag = lua_newtag(state);      object_tag = lua_newtag(state);
327    
     // Create a new table to store all variables and functions  
     // accessible from LUA.  
     lua_newtable(state);  
     lua_setglobal(state, "enigma");  
   
328      // Register all functions      // Register all functions
329      RegisterFuncs(luafuncs);      RegisterFuncs(luafuncs);
   
     tolua_enigma_open(state);  
     tolua_px_open(state);  
330  }  }
331    
332  void lua::Shutdown()  void lua::Shutdown()

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

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