MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_stringtonumber

Function lua_stringtonumber

3rd/lua-5.4.3/src/lapi.c:365–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363
364
365LUA_API size_t lua_stringtonumber (lua_State *L, const char *s) {
366 size_t sz = luaO_str2num(s, s2v(L->top));
367 if (sz != 0)
368 api_incr_top(L);
369 return sz;
370}
371
372
373LUA_API lua_Number lua_tonumberx (lua_State *L, int idx, int *pisnum) {

Callers 3

luaB_tonumberFunction · 0.85
tonumFunction · 0.85
read_numberFunction · 0.85

Calls 1

luaO_str2numFunction · 0.85

Tested by

no test coverage detected