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, populate constants, register the PRNG functions with their shared RanState upvalue.

LUAMOD_APIpub (see macros.tsv).