diff options
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -131,6 +131,16 @@ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); | |||
131 | typedef void (*lua_WarnFunction) (void *ud, const char *msg, int tocont); | 131 | typedef void (*lua_WarnFunction) (void *ud, const char *msg, int tocont); |
132 | 132 | ||
133 | 133 | ||
134 | /* | ||
135 | ** Type used by the debug API to collect debug information | ||
136 | */ | ||
137 | typedef struct lua_Debug lua_Debug; | ||
138 | |||
139 | |||
140 | /* | ||
141 | ** Functions to be called by the debugger in specific events | ||
142 | */ | ||
143 | typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); | ||
134 | 144 | ||
135 | 145 | ||
136 | /* | 146 | /* |
@@ -442,12 +452,6 @@ LUA_API void (lua_closeslot) (lua_State *L, int idx); | |||
442 | #define LUA_MASKLINE (1 << LUA_HOOKLINE) | 452 | #define LUA_MASKLINE (1 << LUA_HOOKLINE) |
443 | #define LUA_MASKCOUNT (1 << LUA_HOOKCOUNT) | 453 | #define LUA_MASKCOUNT (1 << LUA_HOOKCOUNT) |
444 | 454 | ||
445 | typedef struct lua_Debug lua_Debug; /* activation record */ | ||
446 | |||
447 | |||
448 | /* Functions to be called by the debugger in specific events */ | ||
449 | typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); | ||
450 | |||
451 | 455 | ||
452 | LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar); | 456 | LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar); |
453 | LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar); | 457 | LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar); |