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
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)