| 104 | |
| 105 | |
| 106 | static 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 | |
| 117 | static int math_fmod (lua_State *L) { |
nothing calls this directly
no test coverage detected