Skip to main content

push_fstring

Function push_fstring 

Source
pub fn push_fstring<'a>(
    state: &mut LuaState,
    fmt: &[u8],
    args: &[FmtArg<'a>],
) -> Result<GcRef<LuaString>, LuaError>
Expand description

Variadic entry point; delegates to push_vfstring.

PORT NOTE: callers that previously used luaO_pushfstring for error messages should collapse the call into LuaError::runtime(format_args!(...)); see PORTING.md ยง4.2 and error_sites.tsv.