Update of /cvsroot/wxlua/wxLua/modules/wxbind/src
In directory vz-cvs-4.sog:/tmp/cvs-serv5883/modules/wxbind/src
Modified Files:
wxbase_bind.cpp
Log Message:
Add wxLUASTATE_ROOTSTATE to wxLuaState from lua_State to always get the root
lua_State, even if called with a coroutine lua_State.
Used in wxLuaObject so that we can unref it from the parent.
Index: wxbase_bind.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxbase_bind.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** wxbase_bind.cpp 21 Dec 2009 04:06:12 -0000 1.25
--- wxbase_bind.cpp 4 May 2011 04:43:02 -0000 1.26
***************
*** 1133,1137 ****
static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetEmailAddress[1] = {{ wxLua_function_wxGetEmailAddress, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }};
! static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetEnv[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL };
// %override wxLua_function_wxGetEnv
// %function bool wxGetEnv(const wxString& var, wxString *value)
--- 1133,1137 ----
static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetEmailAddress[1] = {{ wxLua_function_wxGetEmailAddress, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }};
! static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetEnv[] = { &wxluatype_TSTRING, NULL };
// %override wxLua_function_wxGetEnv
// %function bool wxGetEnv(const wxString& var, wxString *value)
***************
*** 1149,1153 ****
}
! static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetEnv[1] = {{ wxLua_function_wxGetEnv, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxGetEnv }};
--- 1149,1153 ----
}
! static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetEnv[1] = {{ wxLua_function_wxGetEnv, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxGetEnv }};
|