MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaL_checknumber

Function luaL_checknumber

third-party/lua-5.5.0/src/lauxlib.c:426–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424
425
426LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg) {
427 int isnum;
428 lua_Number d = lua_tonumberx(L, arg, &isnum);
429 if (l_unlikely(!isnum))
430 tag_error(L, arg, LUA_TNUMBER);
431 return d;
432}
433
434
435LUALIB_API lua_Number luaL_optnumber (lua_State *L, int arg, lua_Number def) {

Callers 15

math_absFunction · 0.70
math_sinFunction · 0.70
math_cosFunction · 0.70
math_tanFunction · 0.70
math_asinFunction · 0.70
math_acosFunction · 0.70
math_atanFunction · 0.70
math_floorFunction · 0.70
math_ceilFunction · 0.70
math_fmodFunction · 0.70
math_modfFunction · 0.70
math_sqrtFunction · 0.70

Calls 2

lua_tonumberxFunction · 0.70
tag_errorFunction · 0.70

Tested by

no test coverage detected