| 421 | |
| 422 | |
| 423 | LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg) { |
| 424 | int isnum; |
| 425 | lua_Number d = lua_tonumberx(L, arg, &isnum); |
| 426 | if (l_unlikely(!isnum)) |
| 427 | tag_error(L, arg, LUA_TNUMBER); |
| 428 | return d; |
| 429 | } |
| 430 | |
| 431 | |
| 432 | LUALIB_API lua_Number luaL_optnumber (lua_State *L, int arg, lua_Number def) { |
no test coverage detected