Changeset 6762 for code/trunk/src/external/ceguilua
- Timestamp:
- Apr 19, 2010, 5:45:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/external/ceguilua/ceguilua-0.6.2/ceguilua/changes_orxonox.diff
r5781 r6762 21 21 // prototype for bindings initialisation function 22 22 int tolua_CEGUI_open(lua_State* tolua_S); 23 @@ -61,7 +57,7 @@ 23 @@ -59,9 +55,10 @@ 24 Constructor (creates Lua state) 25 *************************************************************************/ 24 26 LuaScriptModule::LuaScriptModule() : 25 d_errFuncIndex(LUA_NOREF) 27 - d_errFuncIndex(LUA_NOREF) 28 + d_errFuncIndex(LUA_NOREF), 29 + d_activeErrFuncIndex(LUA_NOREF) 26 30 { 27 31 - #if CEGUI_LUA_VER >= 51 … … 30 34 {"", luaopen_base}, 31 35 {LUA_LOADLIBNAME, luaopen_package}, 32 @@ -75,14 +7 1,14 @@36 @@ -75,14 +72,14 @@ 33 37 #endif 34 38 {0, 0} … … 47 51 for (; lib->func; lib++) 48 52 { 49 @@ -90,7 +8 6,7 @@53 @@ -90,7 +87,7 @@ 50 54 lua_pushstring(d_state, lib->name); 51 55 lua_call(d_state, 1, 0); … … 56 60 luaopen_io(d_state); 57 61 luaopen_string(d_state); 58 @@ -99,7 +9 5,7 @@62 @@ -99,7 +96,7 @@ 59 63 #if defined(DEBUG) || defined (_DEBUG) 60 64 luaopen_debug(d_state); … … 65 69 setModuleIdentifierString(); 66 70 } 71 @@ -108,7 +105,9 @@ 72 /************************************************************************* 73 Constructor (uses given Lua state) 74 *************************************************************************/ 75 -LuaScriptModule::LuaScriptModule(lua_State* state) 76 +LuaScriptModule::LuaScriptModule(lua_State* state) : 77 + d_errFuncIndex(LUA_NOREF), 78 + d_activeErrFuncIndex(LUA_NOREF) 79 { 80 // just use the given state 81 d_ownsState = false; 67 82 --- CEGUILua.h Sun Jan 25 18:32:57 2009 68 83 +++ CEGUILua.h Thu Jan 29 10:17:42 2009 … … 91 106 // Start of CEGUI namespace section 92 107 namespace CEGUI 108 @@ -199,6 +199,10 @@ 109 bool ret = lua_isboolean(L, -1) ? lua_toboolean(L, -1 ) : true; 110 lua_pop(L, 1); 111 112 + // remove error handler from stack 113 + if (err_idx != 0) 114 + lua_remove(L, err_idx); 115 + 116 if(helper) 117 { 118 delete helper;
Note: See TracChangeset
for help on using the changeset viewer.