Skip to main content

Module ffi

Module ffi 

Source
Expand description

The public, mlua-style ffi surface (mounted from ffi_public.rs). The public, mlua-style raw C API surface (re-exported at luaur_rt::ffi).

Mirrors mlua::ffi. Only the commonly used subset of the luaur C API is surfaced here, for callers that need to drop down to the stack-machine level (e.g. inside Lua::exec_raw or Lua::create_c_function). The full luaur C API lives in the luaur-vm crate.

Everything here is unsafe to use and offers no safety guarantees beyond the underlying VM — it is the same low-level interface the safe wrappers sit on top of. luaur is a pure-Rust VM, so these are plain Rust fns, not a C ABI boundary (see [lua_CFunction], which is a Rust unsafe fn, not an extern "C-unwind" fn).

Functions§

lua_call
lua_error
lua_getfield
lua_getglobal
lua_pcall
lua_pushboolean
lua_pushinteger
lua_pushnumber
lua_setfield
lua_setglobal
lua_tointegerx
lua_tonumberx
lua_type

Type Aliases§

lua_CFunction
lua_State