lua_pushstring(VM, "PerFrame");
lua_gettable(VM, LUA_GLOBALSINDEX);
followed by
something like:
PerFrameFunction = lua_getfromstack(VM, 1); // so I made up
"lua_getfromstack" here...
...and per-frame we
do something like:
lua_pushtostack(VM, PerFrameFunction);
lua_call(VM, 0, 0);
It would be nice to
be able to do the same for a function in a table whilst reserving
'self'.
Did I miss how to do
this or isn't it possible (yet? :) with LUA?
Thanks,
Hugo