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

Function lua_tonumber

third-party/lua-5.1.5/src/lapi.c:313–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311
312
313LUA_API lua_Number lua_tonumber (lua_State *L, int idx) {
314 TValue n;
315 const TValue *o = index2adr(L, idx);
316 if (tonumber(o, &n))
317 return nvalue(o);
318 else
319 return 0;
320}
321
322
323LUA_API lua_Integer lua_tointeger (lua_State *L, int idx) {

Callers 15

luaB_tonumberFunction · 0.70
luaB_setfenvFunction · 0.70
luaL_checknumberFunction · 0.70
maxnFunction · 0.70
g_writeFunction · 0.70
addliteralFunction · 0.50
addliteralFunction · 0.50
luaL_tolstringFunction · 0.50
g_writeFunction · 0.50
addliteralFunction · 0.50
luaL_tolstringFunction · 0.50
maxnFunction · 0.50

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected