10 #include "engines/grim/lua/lobject.h" 11 #include "engines/grim/lua/lstate.h" 22 #define incr_top { if (lua_state->stack.top >= lua_state->stack.last) luaD_checkstack(1); lua_state->stack.top++; } 26 #define Address(lo) ((lo) + lua_state->stack.stack - 1) 27 #define Ref(st) ((st) - lua_state->stack.stack + 1) 31 void luaD_adjusttop(
StkId newtop);
32 void luaD_openstack(int32 nelems);
33 void luaD_lineHook(int32 line);
34 void luaD_callHook(
StkId base, TProtoFunc *tf, int32 isreturn);
35 void luaD_postret(
StkId firstResult);
36 int32 luaD_call(
StkId base, int32 nResults);
37 void luaD_callTM(TObject *f, int32 nParams, int32 nResults);
38 int32 luaD_protectedrun(int32 nResults);
39 void luaD_gcIM(TObject *o);
40 void luaD_travstack(int32 (*fn)(TObject *));
41 void luaD_checkstack(int32 n);