[Orxonox-commit 2045] r6762 - code/trunk/src/external/ceguilua/ceguilua-0.6.2/ceguilua
rgrieder at orxonox.net
rgrieder at orxonox.net
Mon Apr 19 17:45:29 CEST 2010
Author: rgrieder
Date: 2010-04-19 17:45:29 +0200 (Mon, 19 Apr 2010)
New Revision: 6762
Modified:
code/trunk/src/external/ceguilua/ceguilua-0.6.2/ceguilua/changes_orxonox.diff
Log:
Changes from last revision --> diff file for external libraries updated.
Modified: code/trunk/src/external/ceguilua/ceguilua-0.6.2/ceguilua/changes_orxonox.diff
===================================================================
--- code/trunk/src/external/ceguilua/ceguilua-0.6.2/ceguilua/changes_orxonox.diff 2010-04-19 14:49:11 UTC (rev 6761)
+++ code/trunk/src/external/ceguilua/ceguilua-0.6.2/ceguilua/changes_orxonox.diff 2010-04-19 15:45:29 UTC (rev 6762)
@@ -20,16 +20,20 @@
// prototype for bindings initialisation function
int tolua_CEGUI_open(lua_State* tolua_S);
-@@ -61,7 +57,7 @@
+@@ -59,9 +55,10 @@
+ Constructor (creates Lua state)
+ *************************************************************************/
LuaScriptModule::LuaScriptModule() :
- d_errFuncIndex(LUA_NOREF)
+- d_errFuncIndex(LUA_NOREF)
++ d_errFuncIndex(LUA_NOREF),
++ d_activeErrFuncIndex(LUA_NOREF)
{
- #if CEGUI_LUA_VER >= 51
+ #if LUA_VERSION_NUM >= 501
static const luaL_Reg lualibs[] = {
{"", luaopen_base},
{LUA_LOADLIBNAME, luaopen_package},
-@@ -75,14 +71,14 @@
+@@ -75,14 +72,14 @@
#endif
{0, 0}
};
@@ -46,7 +50,7 @@
const luaL_Reg *lib = lualibs;
for (; lib->func; lib++)
{
-@@ -90,7 +86,7 @@
+@@ -90,7 +87,7 @@
lua_pushstring(d_state, lib->name);
lua_call(d_state, 1, 0);
}
@@ -55,7 +59,7 @@
luaopen_base(d_state);
luaopen_io(d_state);
luaopen_string(d_state);
-@@ -99,7 +95,7 @@
+@@ -99,7 +96,7 @@
#if defined(DEBUG) || defined (_DEBUG)
luaopen_debug(d_state);
#endif
@@ -64,6 +68,17 @@
setModuleIdentifierString();
}
+@@ -108,7 +105,9 @@
+ /*************************************************************************
+ Constructor (uses given Lua state)
+ *************************************************************************/
+-LuaScriptModule::LuaScriptModule(lua_State* state)
++LuaScriptModule::LuaScriptModule(lua_State* state) :
++ d_errFuncIndex(LUA_NOREF),
++ d_activeErrFuncIndex(LUA_NOREF)
+ {
+ // just use the given state
+ d_ownsState = false;
--- CEGUILua.h Sun Jan 25 18:32:57 2009
+++ CEGUILua.h Thu Jan 29 10:17:42 2009
@@ -38,7 +38,11 @@
@@ -90,3 +105,14 @@
// Start of CEGUI namespace section
namespace CEGUI
+@@ -199,6 +199,10 @@
+ bool ret = lua_isboolean(L, -1) ? lua_toboolean(L, -1 ) : true;
+ lua_pop(L, 1);
+
++ // remove error handler from stack
++ if (err_idx != 0)
++ lua_remove(L, err_idx);
++
+ if(helper)
+ {
+ delete helper;
More information about the Orxonox-commit
mailing list