MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / math_ceil

Function math_ceil

3rd/lua-5.4.3/src/lmathlib.c:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106static int math_ceil (lua_State *L) {
107 if (lua_isinteger(L, 1))
108 lua_settop(L, 1); /* integer is its own ceil */
109 else {
110 lua_Number d = l_mathop(ceil)(luaL_checknumber(L, 1));
111 pushnumint(L, d);
112 }
113 return 1;
114}
115
116
117static int math_fmod (lua_State *L) {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected