Skip to main content

luaopen_math

Function luaopen_math 

Source
pub fn luaopen_math(state: &mut LuaState) -> Result<usize, LuaError>
Expand description

Open the math library: create the table, register the version-agnostic functions and the per-version roster delta, populate the constants, and wire up the PRNG functions.