| 231 | |
| 232 | |
| 233 | static int math_type (lua_State *L) { |
| 234 | if (lua_type(L, 1) == LUA_TNUMBER) |
| 235 | lua_pushstring(L, (lua_isinteger(L, 1)) ? "integer" : "float"); |
| 236 | else { |
| 237 | luaL_checkany(L, 1); |
| 238 | luaL_pushfail(L); |
| 239 | } |
| 240 | return 1; |
| 241 | } |
| 242 | |
| 243 | |
| 244 |
nothing calls this directly
no test coverage detected