Re: [wxlua-users] change to wxldtarg.cpp

2010-12-09 Thread Andre Arpin
Andre Arpin writes: > > in EvaluateExpr // an expression int nOldTop = lua_gettop(L); wxString rExpr = wxT("return ") + strExpr; wxLuaCharBuffer charbuf(rExpr); int nResult = luaL_loadbuffer(L, charbuf.GetData(), charbuf.Length(), "debug"); adding the "return" makes more sense otherwise the us

Re: [wxlua-users] change to wxldtarg.cpp

2010-12-09 Thread Andre Arpin
Andre Arpin writes: > > in EvaluateExpr > checking for local variables while (!fFound && lua_getstack(L, iLevel++, &ar) != 0) { int iIndex = 0; wxString name = lua2wx(lua_getlocal(L, &ar, ++iIndex)); while(!fFound && !name.IsEmpty()) { if (strExpr == name)