Andre Arpin <ar...@...> 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 user has to write return Expression for the evaluation to work. Andre ------------------------------------------------------------------------------ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users