Function 'luaK_semerror' made vararg

All calls to 'luaK_semerror' were using 'luaO_pushfstring' to create
the error messages.
This commit is contained in:
Roberto Ierusalimschy
2025-04-17 14:58:55 -03:00
parent 3dbb1a4b89
commit 50fd8d03c3
3 changed files with 21 additions and 20 deletions

View File

@@ -97,7 +97,7 @@ LUAI_FUNC void luaK_settablesize (FuncState *fs, int pc,
int ra, int asize, int hsize);
LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore);
LUAI_FUNC void luaK_finish (FuncState *fs);
LUAI_FUNC l_noret luaK_semerror (LexState *ls, const char *msg);
LUAI_FUNC l_noret luaK_semerror (LexState *ls, const char *fmt, ...);
#endif