diff options
Diffstat (limited to 'luadebug.h')
| -rw-r--r-- | luadebug.h | 26 |
1 files changed, 13 insertions, 13 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luadebug.h,v 1.6 1999/03/04 21:17:26 roberto Exp roberto $ | 2 | ** $Id: luadebug.h,v 1.7 1999/08/16 20:52:00 roberto Exp roberto $ |
| 3 | ** Debugging API | 3 | ** Debugging API |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -13,23 +13,23 @@ | |||
| 13 | 13 | ||
| 14 | typedef lua_Object lua_Function; | 14 | typedef lua_Object lua_Function; |
| 15 | 15 | ||
| 16 | typedef void (*lua_LHFunction) (int line); | 16 | typedef void (*lua_LHFunction) (lua_State *L, int line); |
| 17 | typedef void (*lua_CHFunction) (lua_Function func, const char *file, int line); | 17 | typedef void (*lua_CHFunction) (lua_State *L, lua_Function func, const char *file, int line); |
| 18 | 18 | ||
| 19 | lua_Function lua_stackedfunction (int level); | 19 | lua_Function lua_stackedfunction (lua_State *L, int level); |
| 20 | void lua_funcinfo (lua_Object func, const char **source, int *linedefined); | 20 | void lua_funcinfo (lua_State *L, lua_Object func, const char **source, int *linedefined); |
| 21 | int lua_currentline (lua_Function func); | 21 | int lua_currentline (lua_State *L, lua_Function func); |
| 22 | const char *lua_getobjname (lua_Object o, const char **name); | 22 | const char *lua_getobjname (lua_State *L, lua_Object o, const char **name); |
| 23 | 23 | ||
| 24 | lua_Object lua_getlocal (lua_Function func, int local_number, | 24 | lua_Object lua_getlocal (lua_State *L, lua_Function func, int local_number, |
| 25 | const char **name); | 25 | const char **name); |
| 26 | int lua_setlocal (lua_Function func, int local_number); | 26 | int lua_setlocal (lua_State *L, lua_Function func, int local_number); |
| 27 | 27 | ||
| 28 | int lua_nups (lua_Function func); | 28 | int lua_nups (lua_State *L, lua_Function func); |
| 29 | 29 | ||
| 30 | lua_LHFunction lua_setlinehook (lua_LHFunction func); | 30 | lua_LHFunction lua_setlinehook (lua_State *L, lua_LHFunction func); |
| 31 | lua_CHFunction lua_setcallhook (lua_CHFunction func); | 31 | lua_CHFunction lua_setcallhook (lua_State *L, lua_CHFunction func); |
| 32 | int lua_setdebug (int debug); | 32 | int lua_setdebug (lua_State *L, int debug); |
| 33 | 33 | ||
| 34 | 34 | ||
| 35 | #endif | 35 | #endif |
