| 373 | |
| 374 | |
| 375 | LUALIB_API lua_Number luaL_checknumber (lua_State *L, int narg) { |
| 376 | int isnum; |
| 377 | lua_Number d = lua_tonumberx(L, narg, &isnum); |
| 378 | if (!isnum) |
| 379 | tag_error(L, narg, LUA_TNUMBER); |
| 380 | return d; |
| 381 | } |
| 382 | |
| 383 | |
| 384 | LUALIB_API lua_Number luaL_optnumber (lua_State *L, int narg, lua_Number def) { |
no test coverage detected