source:
code/trunk/src/external/ceguilua/ceguilua-0.5.0/ceguilua/changes_orxonox.diff
@
5781
Last change on this file since 5781 was 5781, checked in by rgrieder, 15 years ago | |
---|---|
|
|
File size: 2.9 KB |
-
CEGUILua.cpp
40 40 #include "lauxlib.h" 41 41 } 42 42 43 #include "tolua ++.h"43 #include "tolua/tolua++.h" 44 44 45 45 // prototype for bindings initialisation function 46 46 int tolua_CEGUI_open(lua_State* tolua_S); … … 55 55 *************************************************************************/ 56 56 LuaScriptModule::LuaScriptModule() 57 57 { 58 #if LUA_VERSION_NUM >= 501 59 static const luaL_Reg lualibs[] = { 60 {"", luaopen_base}, 61 {LUA_LOADLIBNAME, luaopen_package}, 62 {LUA_TABLIBNAME, luaopen_table}, 63 {LUA_IOLIBNAME, luaopen_io}, 64 {LUA_OSLIBNAME, luaopen_os}, 65 {LUA_STRLIBNAME, luaopen_string}, 66 {LUA_MATHLIBNAME, luaopen_math}, 67 #if defined(DEBUG) || defined (_DEBUG) 68 {LUA_DBLIBNAME, luaopen_debug}, 69 #endif 70 {0, 0} 71 }; 72 #endif /* LUA_VERSION_NUM >= 501 */ 73 58 74 // create a lua state 59 75 d_ownsState = true; 60 76 d_state = lua_open(); 61 77 62 78 // init all standard libraries 63 luaopen_base(d_state); 64 luaopen_io(d_state); 65 luaopen_string(d_state); 66 luaopen_table(d_state); 67 luaopen_math(d_state); 68 #if defined(DEBUG) || defined (_DEBUG) 69 luaopen_debug(d_state); 70 #endif 79 #if LUA_VERSION_NUM >= 501 80 const luaL_Reg *lib = lualibs; 81 for (; lib->func; lib++) 82 { 83 lua_pushcfunction(d_state, lib->func); 84 lua_pushstring(d_state, lib->name); 85 lua_call(d_state, 1, 0); 86 } 87 #else /* LUA_VERSION_NUM >= 501 */ 88 luaopen_base(d_state); 89 luaopen_io(d_state); 90 luaopen_string(d_state); 91 luaopen_table(d_state); 92 luaopen_math(d_state); 93 #if defined(DEBUG) || defined (_DEBUG) 94 luaopen_debug(d_state); 95 #endif 96 #endif /* LUA_VERSION_NUM >= 501 */ 71 97 72 98 setModuleIdentifierString(); 73 99 } -
CEGUILua.h
38 38 # ifdef CEGUILUA_EXPORTS 39 39 # define CEGUILUA_API __declspec(dllexport) 40 40 # else 41 # define CEGUILUA_API __declspec(dllimport) 41 # if defined( __MINGW32__ ) 42 # define CEGUILUA_API 43 # else 44 # define CEGUILUA_API __declspec(dllimport) 45 # endif 42 46 # endif 43 47 #else 44 48 # define CEGUILUA_API -
CEGUILuaFunctor.cpp
39 39 #include "lauxlib.h" 40 40 } 41 41 42 #include "tolua ++.h"42 #include "tolua/tolua++.h" 43 43 44 44 // Start of CEGUI namespace section 45 45 namespace CEGUI -
required.h
36 36 #define __operator_decrement operator-- 37 37 #define __operator_dereference operator* 38 38 39 //This is used to keep compilers happy 40 #define CEGUIDeadException(e) & 41 39 42 #define LuaFunctorSubscribeEvent CEGUI::LuaFunctor::SubscribeEvent 40 43 41 44 #if defined(_MSC_VER) && !defined(snprintf)
Note: See TracBrowser
for help on using the repository browser.