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

Function math_ceil

third-party/lua-5.5.0/src/lmathlib.c:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112
113static int math_ceil (lua_State *L) {
114 if (lua_isinteger(L, 1))
115 lua_settop(L, 1); /* integer is its own ceiling */
116 else {
117 lua_Number d = l_mathop(ceil)(luaL_checknumber(L, 1));
118 pushnumint(L, d);
119 }
120 return 1;
121}
122
123
124static int math_fmod (lua_State *L) {

Callers

nothing calls this directly

Calls 4

lua_isintegerFunction · 0.70
lua_settopFunction · 0.70
luaL_checknumberFunction · 0.70
pushnumintFunction · 0.70

Tested by

no test coverage detected