MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaL_checknumber

Function luaL_checknumber

lib/lua/src/lauxlib.c:423–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421
422
423LUALIB_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
432LUALIB_API lua_Number luaL_optnumber (lua_State *L, int arg, lua_Number def) {

Callers 15

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

Calls 2

lua_tonumberxFunction · 0.85
tag_errorFunction · 0.85

Tested by

no test coverage detected