luaL_error

Function luaL_error 

Source
pub unsafe extern "C-unwind" fn luaL_error(
    l: *mut lua_State,
    fmt: *const c_char,
    ...
) -> c_int
Expand description

Raises an error. The error message format is given by fmt plus any extra arguments, following the same rules of lua_pushfstring. 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. [-0, +0, v]

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