aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-09-20 15:56:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-09-20 15:56:39 -0300
commit20d42ccaaed9a84783d548d76633a5a38f0091f1 (patch)
tree4d0aae4dfac41956ac35a69ece27d042acd8f4f8 /lauxlib.c
parent70d6975018c1f2b8ce34058a4d54a28a3fafca66 (diff)
downloadlua-20d42ccaaed9a84783d548d76633a5a38f0091f1.tar.gz
lua-20d42ccaaed9a84783d548d76633a5a38f0091f1.tar.bz2
lua-20d42ccaaed9a84783d548d76633a5a38f0091f1.zip
No errors in 'luaO_pushvfstring'
Any call to 'va_start' must have a corresponding call to 'va_end'; so, functions called between them (luaO_pushvfstring in particular) cannot raise errors.
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lauxlib.c b/lauxlib.c
index defd4d57..a36655f2 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -225,7 +225,7 @@ LUALIB_API void luaL_where (lua_State *L, int level) {
225/* 225/*
226** Again, the use of 'lua_pushvfstring' ensures this function does 226** Again, the use of 'lua_pushvfstring' ensures this function does
227** not need reserved stack space when called. (At worst, it generates 227** not need reserved stack space when called. (At worst, it generates
228** an error with "stack overflow" instead of the given message.) 228** a memory error instead of the given message.)
229*/ 229*/
230LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { 230LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) {
231 va_list argp; 231 va_list argp;