MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaopen_math

Function luaopen_math

third-party/lua-5.2.4/src/lmathlib.c:271–278  ·  view source on GitHub ↗

** Open math library */

Source from the content-addressed store, hash-verified

269** Open math library
270*/
271LUAMOD_API int luaopen_math (lua_State *L) {
272 luaL_newlib(L, mathlib);
273 lua_pushnumber(L, PI);
274 lua_setfield(L, -2, "pi");
275 lua_pushnumber(L, HUGE_VAL);
276 lua_setfield(L, -2, "huge");
277 return 1;
278}
279

Callers

nothing calls this directly

Calls 2

lua_pushnumberFunction · 0.70
lua_setfieldFunction · 0.70

Tested by

no test coverage detected