luaL_error ( L fmt -- int )
Lua 5.5 ยป Lua 5.5 variadic formatting

Prev:lua_pushvfstring ( L fmt argp -- c-string )


Vocabulary
lua

Inputs
La c-ptr
fmta string


Outputs
intan int


Word description
The variadic Lua error entry point. The base declaration has no anonymous arguments; typed aliases use the same format rules as lua_pushfstring.

Warning
This function never returns: it raises a Lua error with longjmp. Do not call it from a Factor callback, even if the callback was invoked beneath lua_pcall. The jump would bypass Factor's callback cleanup. Raise errors in a C shim whose lua_pcall protection and error-producing call are entirely inside C, then return the status and message to Factor.


Definition