From: John L. <jr...@us...> - 2007-03-19 21:56:17
|
Update of /cvsroot/wxlua/wxLua/modules/wxlua/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv25513/wxLua/modules/wxlua/src Modified Files: wxlbind.cpp Log Message: comment why we remove items from the stack before calling our C functions make wxLuaCheckStack::DumpStack a little nicer by printing types and values Index: wxlbind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxlua/src/wxlbind.cpp,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** wxlbind.cpp 19 Mar 2007 03:47:21 -0000 1.55 --- wxlbind.cpp 19 Mar 2007 21:56:11 -0000 1.56 *************** *** 50,55 **** // remove this line to restore calling methods using the dot notation // otherwise the colon notation *must* be used. ! lua_remove(L, 1); ! return (*m_pMethod->func)(L); } --- 50,54 ---- // remove this line to restore calling methods using the dot notation // otherwise the colon notation *must* be used. ! lua_remove(L, 1); // remove the wxLuaFunction userdata from the stack return (*m_pMethod->func)(L); } *************** *** 349,353 **** if (pMethod->type == LuaGetProp) { ! lua_remove(L, 2); result = (*pMethod->func)(L); fFound = true; --- 348,352 ---- if (pMethod->type == LuaGetProp) { ! lua_remove(L, 2); // remove the name of the function result = (*pMethod->func)(L); fFound = true; |