aboutsummaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-03-12 15:51:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-03-12 15:51:16 -0300
commitc931d86e98da320c71da70c16d44aa28e9755520 (patch)
tree2c73ee84120f8f7983d883b3f46546e0676f6ba6 /ldo.h
parentd9e0f64a5de699a620771af299ea22f522c72f19 (diff)
downloadlua-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 '')
-rw-r--r--ldo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldo.h b/ldo.h
index ea1655e1..465f4fb8 100644
--- a/ldo.h
+++ b/ldo.h
@@ -67,6 +67,7 @@
67/* type of protected functions, to be ran by 'runprotected' */ 67/* type of protected functions, to be ran by 'runprotected' */
68typedef void (*Pfunc) (lua_State *L, void *ud); 68typedef void (*Pfunc) (lua_State *L, void *ud);
69 69
70LUAI_FUNC l_noret luaD_errerr (lua_State *L);
70LUAI_FUNC void luaD_seterrorobj (lua_State *L, TStatus errcode, StkId oldtop); 71LUAI_FUNC void luaD_seterrorobj (lua_State *L, TStatus errcode, StkId oldtop);
71LUAI_FUNC TStatus luaD_protectedparser (lua_State *L, ZIO *z, 72LUAI_FUNC TStatus luaD_protectedparser (lua_State *L, ZIO *z,
72 const char *name, 73 const char *name,