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

Function lua_stringtonumber

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

Source from the content-addressed store, hash-verified

379
380
381LUA_API size_t lua_stringtonumber (lua_State *L, const char *s) {
382 size_t sz = luaO_str2num(s, s2v(L->top.p));
383 if (sz != 0)
384 api_incr_top(L);
385 return sz;
386}
387
388
389LUA_API lua_Number lua_tonumberx (lua_State *L, int idx, int *pisnum) {

Callers 3

luaB_tonumberFunction · 0.70
tonumFunction · 0.70
read_numberFunction · 0.70

Calls 1

luaO_str2numFunction · 0.70

Tested by

no test coverage detected