diff options
author | Hans Hagen <pragma@wxs.nl> | 2023-01-26 19:34:21 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2023-01-26 19:34:21 +0100 |
commit | 83667a906d7cac842635bc5243db70f55b346562 (patch) | |
tree | 6d22734798c775c081c3aecb7f05faf590e6570b /source/luametatex/source/luacore/lua54/src/lua.h | |
parent | b47e8c2cdeeab0bcdb1c4c32328c933f3f8599de (diff) | |
download | context-83667a906d7cac842635bc5243db70f55b346562.tar.gz |
2023-01-26 18:34:00
Diffstat (limited to 'source/luametatex/source/luacore/lua54/src/lua.h')
-rw-r--r-- | source/luametatex/source/luacore/lua54/src/lua.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source/luametatex/source/luacore/lua54/src/lua.h b/source/luametatex/source/luacore/lua54/src/lua.h index bfba4d1e1..feb3dbc55 100644 --- a/source/luametatex/source/luacore/lua54/src/lua.h +++ b/source/luametatex/source/luacore/lua54/src/lua.h @@ -131,6 +131,16 @@ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); typedef void (*lua_WarnFunction) (void *ud, const char *msg, int tocont); +/* +** Type used by the debug API to collect debug information +*/ +typedef struct lua_Debug lua_Debug; + + +/* +** Functions to be called by the debugger in specific events +*/ +typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); /* @@ -442,12 +452,6 @@ LUA_API void (lua_closeslot) (lua_State *L, int idx); #define LUA_MASKLINE (1 << LUA_HOOKLINE) #define LUA_MASKCOUNT (1 << LUA_HOOKCOUNT) -typedef struct lua_Debug lua_Debug; /* activation record */ - - -/* Functions to be called by the debugger in specific events */ -typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); - LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar); LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar); |