Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6762


Ignore:
Timestamp:
Apr 19, 2010, 5:45:29 PM (14 years ago)
Author:
rgrieder
Message:

Changes from last revision —> diff file for external libraries updated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/external/ceguilua/ceguilua-0.6.2/ceguilua/changes_orxonox.diff

    r5781 r6762  
    2121 // prototype for bindings initialisation function
    2222 int tolua_CEGUI_open(lua_State* tolua_S);
    23 @@ -61,7 +57,7 @@
     23@@ -59,9 +55,10 @@
     24        Constructor (creates Lua state)
     25 *************************************************************************/
    2426 LuaScriptModule::LuaScriptModule() :
    25      d_errFuncIndex(LUA_NOREF)
     27-    d_errFuncIndex(LUA_NOREF)
     28+    d_errFuncIndex(LUA_NOREF),
     29+    d_activeErrFuncIndex(LUA_NOREF)
    2630 {
    2731-    #if CEGUI_LUA_VER >= 51
     
    3034             {"", luaopen_base},
    3135             {LUA_LOADLIBNAME, luaopen_package},
    32 @@ -75,14 +71,14 @@
     36@@ -75,14 +72,14 @@
    3337         #endif
    3438             {0, 0}
     
    4751             for (; lib->func; lib++)
    4852             {
    49 @@ -90,7 +86,7 @@
     53@@ -90,7 +87,7 @@
    5054                 lua_pushstring(d_state, lib->name);
    5155                 lua_call(d_state, 1, 0);
     
    5660         luaopen_io(d_state);
    5761         luaopen_string(d_state);
    58 @@ -99,7 +95,7 @@
     62@@ -99,7 +96,7 @@
    5963         #if defined(DEBUG) || defined (_DEBUG)
    6064             luaopen_debug(d_state);
     
    6569     setModuleIdentifierString();
    6670 }
     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;
    6782--- CEGUILua.h  Sun Jan 25 18:32:57 2009
    6883+++ CEGUILua.h  Thu Jan 29 10:17:42 2009
     
    91106 // Start of CEGUI namespace section
    92107 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.