File: luadebug.h

package info (click to toggle)
scummvm-tools 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,940 kB
  • sloc: cpp: 76,819; python: 6,550; sh: 4,661; perl: 1,530; ansic: 646; makefile: 360
file content (33 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (2)
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
/*
** $Id: luadebug.h 905 2008-07-20 21:08:22Z aquadran $
** Debugging API
** See Copyright Notice in lua.h
*/


#ifndef luadebug_h
#define luadebug_h


#include "lua.h"

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;


#endif