ScummVM API documentation
ltask.h
1 #ifndef GRIM_LTASK_H
2 #define GRIM_LTASK_H
3 
4 #include "engines/grim/lua/lua.h"
5 #include "engines/grim/lua/lstate.h"
6 #include "engines/grim/lua/lbuiltin.h"
7 
8 namespace Grim {
9 
10 struct lua_Task {
11  lua_Task *next;
12  struct Stack *S;
13  Closure *cl;
14  TProtoFunc *tf;
15  StkId base;
16  byte *pc;
17  TObject *consts;
18  int32 aux;
19  bool executed;
20  StkId initBase;
21  int32 initResults;
22 };
23 
24 void lua_taskinit(lua_Task *task, lua_Task *next, StkId tbase, int results);
25 void lua_taskresume(lua_Task *task, Closure *closure, TProtoFunc *protofunc, StkId tbase);
26 StkId luaV_execute(lua_Task *task);
27 
28 void pause_script();
29 void unpause_script();
30 
31 void runtasks(LState *const rootState);
32 
33 } // end of namespace Grim
34 
35 #endif
Definition: lobject.h:65
Definition: lobject.h:93
Definition: lstate.h:89
Definition: ltask.h:10
Definition: actor.h:33
Definition: lobject.h:122
Definition: lstate.h:34