diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-03-12 15:51:16 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-03-12 15:51:16 -0300 |
| commit | c931d86e98da320c71da70c16d44aa28e9755520 (patch) | |
| tree | 2c73ee84120f8f7983d883b3f46546e0676f6ba6 /ldo.h | |
| parent | d9e0f64a5de699a620771af299ea22f522c72f19 (diff) | |
| download | lua-c931d86e98da320c71da70c16d44aa28e9755520.tar.gz lua-c931d86e98da320c71da70c16d44aa28e9755520.tar.bz2 lua-c931d86e98da320c71da70c16d44aa28e9755520.zip | |
'luaD_seterrorobj' should not raise errors
This function can be called unprotected, so it should not raise any
kind of errors. (It could raise a memory-allocation error when creating
a message).
Diffstat (limited to 'ldo.h')
| -rw-r--r-- | ldo.h | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -67,6 +67,7 @@ | |||
| 67 | /* type of protected functions, to be ran by 'runprotected' */ | 67 | /* type of protected functions, to be ran by 'runprotected' */ |
| 68 | typedef void (*Pfunc) (lua_State *L, void *ud); | 68 | typedef void (*Pfunc) (lua_State *L, void *ud); |
| 69 | 69 | ||
| 70 | LUAI_FUNC l_noret luaD_errerr (lua_State *L); | ||
| 70 | LUAI_FUNC void luaD_seterrorobj (lua_State *L, TStatus errcode, StkId oldtop); | 71 | LUAI_FUNC void luaD_seterrorobj (lua_State *L, TStatus errcode, StkId oldtop); |
| 71 | LUAI_FUNC TStatus luaD_protectedparser (lua_State *L, ZIO *z, | 72 | LUAI_FUNC TStatus luaD_protectedparser (lua_State *L, ZIO *z, |
| 72 | const char *name, | 73 | const char *name, |
