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

Function luaL_checknumber

third-party/lua-5.2.4/src/lauxlib.c:375–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373
374
375LUALIB_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
384LUALIB_API lua_Number luaL_optnumber (lua_State *L, int narg, lua_Number def) {

Callers 15

math_absFunction · 0.70
math_sinFunction · 0.70
math_sinhFunction · 0.70
math_cosFunction · 0.70
math_coshFunction · 0.70
math_tanFunction · 0.70
math_tanhFunction · 0.70
math_asinFunction · 0.70
math_acosFunction · 0.70
math_atanFunction · 0.70
math_atan2Function · 0.70
math_ceilFunction · 0.70

Calls 2

lua_tonumberxFunction · 0.70
tag_errorFunction · 0.70

Tested by

no test coverage detected