Macro lua_fmt_error

Source
macro_rules! lua_fmt_error {
    ($lua:expr, $fmt:literal $(, $fmt_arg:expr)*) => { ... };
}
Expand description

Raise a formatted error with luaL_error.

The “signature” for this function is lua_fmt_error!(lua: &Thread, fmt: <string>, ...), where fmt is a literal format string, and ... are the format arguments.

This function follows the same rules as lua_push_fmt_string!.

§Safety

The macro uses an unsafe function, and is itself unsafe to use; there have to be sufficient format arguments, and they must be of the correct type.