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

Function luaO_tostring

third-party/lua-5.5.0/src/lobject.c:464–468  ·  view source on GitHub ↗

** Convert a number object to a Lua string, replacing the value at 'obj' */

Source from the content-addressed store, hash-verified

462** Convert a number object to a Lua string, replacing the value at 'obj'
463*/
464void luaO_tostring (lua_State *L, TValue *obj) {
465 char buff[LUA_N2SBUFFSZ];
466 unsigned len = luaO_tostringbuff(obj, buff);
467 setsvalue(L, obj, luaS_newlstr(L, buff, len));
468}
469
470
471

Callers 1

lua_tolstringFunction · 0.70

Calls 2

luaO_tostringbuffFunction · 0.85
luaS_newlstrFunction · 0.70

Tested by

no test coverage detected