| 114 | |
| 115 | |
| 116 | static 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 | |
| 127 | static int math_fmod (lua_State *L) { |
nothing calls this directly
no test coverage detected