| 70 | |
| 71 | |
| 72 | static int math_atan (lua_State *L) { |
| 73 | lua_Number y = luaL_checknumber(L, 1); |
| 74 | lua_Number x = luaL_optnumber(L, 2, 1); |
| 75 | lua_pushnumber(L, l_mathop(atan2)(y, x)); |
| 76 | return 1; |
| 77 | } |
| 78 | |
| 79 | |
| 80 | static int math_toint (lua_State *L) { |
nothing calls this directly
no test coverage detected