diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2026-04-23 17:57:42 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2026-04-23 17:57:42 -0300 |
| commit | 3228a97c6a953dcf397944161bb64b12f1ff5384 (patch) | |
| tree | 6497f6f8e93ba3bb381c0b48aed71646fca3f9b0 /ldo.h | |
| parent | 0c16a42d61d08266033ff63bc5dfade6312b7359 (diff) | |
| download | lua-3228a97c6a953dcf397944161bb64b12f1ff5384.tar.gz lua-3228a97c6a953dcf397944161bb64b12f1ff5384.tar.bz2 lua-3228a97c6a953dcf397944161bb64b12f1ff5384.zip | |
Bug: 'lua_load' does not preserve the stack
'lua_load' does not preserve the stack through the calls to the
reader function, as it should. Immediately after the first call (to
detect whether chunk is binary) it adds stuff, and it also adds a new
table when starting the compilation of each new function.
Diffstat (limited to 'ldo.h')
| -rw-r--r-- | ldo.h | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -90,6 +90,7 @@ LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror); | |||
| 90 | LUAI_FUNC void luaD_shrinkstack (lua_State *L); | 90 | LUAI_FUNC void luaD_shrinkstack (lua_State *L); |
| 91 | LUAI_FUNC void luaD_inctop (lua_State *L); | 91 | LUAI_FUNC void luaD_inctop (lua_State *L); |
| 92 | LUAI_FUNC int luaD_checkminstack (lua_State *L); | 92 | LUAI_FUNC int luaD_checkminstack (lua_State *L); |
| 93 | LUAI_FUNC void luaD_anchorobj (lua_State *L, Table *anchor, GCObject *obj); | ||
| 93 | 94 | ||
| 94 | LUAI_FUNC l_noret luaD_throw (lua_State *L, TStatus errcode); | 95 | LUAI_FUNC l_noret luaD_throw (lua_State *L, TStatus errcode); |
| 95 | LUAI_FUNC l_noret luaD_throwbaselevel (lua_State *L, TStatus errcode); | 96 | LUAI_FUNC l_noret luaD_throwbaselevel (lua_State *L, TStatus errcode); |
