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

Function lua_isnumber

third-party/lua-5.5.0/src/lapi.c:307–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305
306
307LUA_API int lua_isnumber (lua_State *L, int idx) {
308 lua_Number n;
309 const TValue *o = index2value(L, idx);
310 return tonumber(o, &n);
311}
312
313
314LUA_API int lua_isstring (lua_State *L, int idx) {

Callers 1

interrorFunction · 0.70

Calls 1

index2valueFunction · 0.70

Tested by

no test coverage detected