aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-12-14 16:20:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-12-14 16:20:39 -0300
commit6aabf4b15e7637c2ab4133abf3df0a77f34b6005 (patch)
tree16ca80a0820c3ebca4b64736fe6f5c9b9de2a19d /lua.h
parentfa2f294dd1269115bf9cf534dd38553e2f606801 (diff)
downloadlua-6aabf4b15e7637c2ab4133abf3df0a77f34b6005.tar.gz
lua-6aabf4b15e7637c2ab4133abf3df0a77f34b6005.tar.bz2
lua-6aabf4b15e7637c2ab4133abf3df0a77f34b6005.zip
Details in some header files
Identifier LUA_NUMTAGS was deprecated (changed to LUA_NUMTYPES) + better handling of some inclusion loops.
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/lua.h b/lua.h
index bfba4d1e..feb3dbc5 100644
--- a/lua.h
+++ b/lua.h
@@ -131,6 +131,16 @@ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize);
131typedef void (*lua_WarnFunction) (void *ud, const char *msg, int tocont); 131typedef 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*/
137typedef struct lua_Debug lua_Debug;
138
139
140/*
141** Functions to be called by the debugger in specific events
142*/
143typedef 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
445typedef struct lua_Debug lua_Debug; /* activation record */
446
447
448/* Functions to be called by the debugger in specific events */
449typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar);
450
451 455
452LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar); 456LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar);
453LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar); 457LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar);