| 282 | |
| 283 | |
| 284 | static int math_type (lua_State *L) { |
| 285 | if (lua_type(L, 1) == LUA_TNUMBER) { |
| 286 | if (lua_isinteger(L, 1)) |
| 287 | lua_pushliteral(L, "integer"); |
| 288 | else |
| 289 | lua_pushliteral(L, "float"); |
| 290 | } |
| 291 | else { |
| 292 | luaL_checkany(L, 1); |
| 293 | lua_pushnil(L); |
| 294 | } |
| 295 | return 1; |
| 296 | } |
| 297 | |
| 298 | |
| 299 | /* |
nothing calls this directly
no test coverage detected