LUAL_ERROR(3) Library Functions Manual LUAL_ERROR(3)

luaL_errorraises an error, function indicator [-0, +0, v]

#include <lauxlib.h>

int
luaL_error(lua_State *L, const char *fmt, ...);

() raises an error. The error message format is given by fmt plus any extra arguments, following the same rules of lua_pushfstring(3). It also adds at the beginning of the message the file name and the line number where the error occurred, if this information is available.

This function never returns, but it is an idiom to use it in C functions as return .

lua_pushfstring(3)

Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.

The luaL_error() manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.

July 24, 2022 Debian