MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / (lua_numbertocstring)

Function (lua_numbertocstring)

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

Source from the content-addressed store, hash-verified

367
368
369LUA_API unsigned (lua_numbertocstring) (lua_State *L, int idx, char *buff) {
370 const TValue *o = index2value(L, idx);
371 if (ttisnumber(o)) {
372 unsigned len = luaO_tostringbuff(o, buff);
373 buff[len++] = '\0'; /* add final zero */
374 return len;
375 }
376 else
377 return 0;
378}
379
380
381LUA_API size_t lua_stringtonumber (lua_State *L, const char *s) {

Callers

nothing calls this directly

Calls 2

luaO_tostringbuffFunction · 0.85
index2valueFunction · 0.70

Tested by

no test coverage detected