diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-12-14 16:22:43 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-12-14 16:22:43 -0300 |
| commit | e33e1bda97871c17c1ba23ea508ce295125a65e9 (patch) | |
| tree | 71de82fd673401fef6d5a41ed5abb35d41ac6f69 /lua.h | |
| parent | 5d8b5b9290c932bdfd7dcc670a5af957bdd58392 (diff) | |
| parent | 6aabf4b15e7637c2ab4133abf3df0a77f34b6005 (diff) | |
| download | lua-e33e1bda97871c17c1ba23ea508ce295125a65e9.tar.gz lua-e33e1bda97871c17c1ba23ea508ce295125a65e9.tar.bz2 lua-e33e1bda97871c17c1ba23ea508ce295125a65e9.zip | |
Merge branch 'master' into nextversion
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); |
