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