Skip to main content

LuaCFunction

Type Alias LuaCFunction 

Source
pub type LuaCFunction = fn(&mut LuaState) -> Result<usize, LuaError>;
Expand description

A Lua-callable function pointer. C: lua_CFunction.

lua_types::closure::LuaCFnPtr is a usize-sized placeholder in that crate (which cannot reference LuaState without a circular dependency); this alias carries the real, lua-vm-facing signature.