ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
luadebug.h
1 /*
2 ** Debugging API
3 ** See Copyright Notice in lua.h
4 */
5 
6 
7 #ifndef GRIM_LUADEBUG_H
8 #define GRIM_LUADEBUG_H
9 
10 
11 #include "engines/grim/lua/lua.h"
12 
13 namespace Grim {
14 
15 typedef lua_Object lua_Function;
16 
17 typedef void (*lua_LHFunction)(int32 line);
18 typedef void (*lua_CHFunction)(lua_Function func, const char *file, int32 line);
19 
20 lua_Function lua_stackedfunction(int32 level);
21 void lua_funcinfo(lua_Object func, const char **filename, int32 *linedefined);
22 int32 lua_currentline(lua_Function func);
23 const char *lua_getobjname(lua_Object o, const char **name);
24 
25 lua_Object lua_getlocal(lua_Function func, int32 local_number, char **name);
26 int32 lua_setlocal(lua_Function func, int32 local_number);
27 
28 extern lua_LHFunction lua_linehook;
29 extern lua_CHFunction lua_callhook;
30 extern int32 lua_debug;
31 
32 } // end of namespace Grim
33 
34 
35 #endif
Definition: actor.h:33