MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_stringtonumber

Function lua_stringtonumber

src/Chain/libraries/glua/lapi.cpp:340–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338
339
340LUA_API size_t lua_stringtonumber(lua_State *L, const char *s) {
341 size_t sz = luaO_str2num(s, L->top);
342 if (sz != 0)
343 api_incr_top(L);
344 return sz;
345}
346
347
348LUA_API lua_Number lua_tonumberx(lua_State *L, int idx, int *pisnum) {

Callers 3

read_numberFunction · 0.85
luaB_todoubleFunction · 0.85
luaB_tonumberFunction · 0.85

Calls 1

luaO_str2numFunction · 0.85

Tested by

no test coverage detected