| 63 | } |
| 64 | |
| 65 | static int math_atan (lua_State *L) { |
| 66 | lua_Number y = luaL_checknumber(L, 1); |
| 67 | lua_Number x = luaL_optnumber(L, 2, 1); |
| 68 | lua_pushnumber(L, l_mathop(atan2)(y, x)); |
| 69 | return 1; |
| 70 | } |
| 71 | |
| 72 | |
| 73 | static int math_toint (lua_State *L) { |
nothing calls this directly
no test coverage detected