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

Function math_ceil

third-party/lua-5.3.5/src/lmathlib.c:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115
116static int math_ceil (lua_State *L) {
117 if (lua_isinteger(L, 1))
118 lua_settop(L, 1); /* integer is its own ceil */
119 else {
120 lua_Number d = l_mathop(ceil)(luaL_checknumber(L, 1));
121 pushnumint(L, d);
122 }
123 return 1;
124}
125
126
127static 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