File: luadebug.h

package info (click to toggle)
residualvm 0.3.1%2Bdfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites:
  • size: 31,292 kB
  • sloc: cpp: 227,029; sh: 7,256; xml: 1,731; perl: 1,067; java: 861; asm: 738; python: 691; ansic: 272; makefile: 139; objc: 81; sed: 22; php: 1
file content (35 lines) | stat: -rw-r--r-- 821 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
** Debugging API
** See Copyright Notice in lua.h
*/


#ifndef GRIM_LUADEBUG_H
#define GRIM_LUADEBUG_H


#include "engines/grim/lua/lua.h"

namespace Grim {

typedef lua_Object lua_Function;

typedef void (*lua_LHFunction)(int32 line);
typedef void (*lua_CHFunction)(lua_Function func, const char *file, int32 line);

lua_Function lua_stackedfunction(int32 level);
void lua_funcinfo(lua_Object func, const char **filename, int32 *linedefined);
int32 lua_currentline(lua_Function func);
const char *lua_getobjname(lua_Object o, const char **name);

lua_Object lua_getlocal(lua_Function func, int32 local_number, char **name);
int32 lua_setlocal(lua_Function func, int32 local_number);

extern lua_LHFunction lua_linehook;
extern lua_CHFunction lua_callhook;
extern int32 lua_debug;

} // end of namespace Grim


#endif