Changeset 954 for code/branches/script/src/orxonox
- Timestamp:
- Mar 29, 2008, 5:20:08 PM (17 years ago)
- Location:
- code/branches/script/src/orxonox/script
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/script/src/orxonox/script/Script.cc
r946 r954 27 27 28 28 #include "Script.h" 29 //#include <lua.h> 30 #include <lualib.h> 31 #include <lauxlib.h> 29 extern "C" { 30 #include "lualib.h" 31 #include "lauxlib.h" 32 } 32 33 33 34 … … 37 38 { 38 39 state_ = lua_open(); 39 40 #if Lua_VERSION == 51 40 41 luaL_openlibs(state_); 42 #else 43 luaopen_base(state_); 44 luaopen_table(state_); 45 luaopen_io(state_); 46 luaopen_string(state_); 47 luaopen_math(state_); 48 luaopen_debug(state_); 49 #endif 41 50 } 42 51 -
code/branches/script/src/orxonox/script/Script.h
r946 r954 8 8 #define _Script_H__ 9 9 10 #include <lua.h> 10 extern "C" { 11 #include "lua.h" 12 } 11 13 12 14 namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.