diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-09-20 15:56:39 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-09-20 15:56:39 -0300 |
commit | 20d42ccaaed9a84783d548d76633a5a38f0091f1 (patch) | |
tree | 4d0aae4dfac41956ac35a69ece27d042acd8f4f8 /lauxlib.c | |
parent | 70d6975018c1f2b8ce34058a4d54a28a3fafca66 (diff) | |
download | lua-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | */ |
230 | LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { | 230 | LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { |
231 | va_list argp; | 231 | va_list argp; |