diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-12-14 16:20:39 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-12-14 16:20:39 -0300 |
| commit | 6aabf4b15e7637c2ab4133abf3df0a77f34b6005 (patch) | |
| tree | 16ca80a0820c3ebca4b64736fe6f5c9b9de2a19d /lua.h | |
| parent | fa2f294dd1269115bf9cf534dd38553e2f606801 (diff) | |
| download | lua-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.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); |
