MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaO_tostring

Function luaO_tostring

extlibs/lua/src/lobject.c:362–366  ·  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

360** Convert a number object to a Lua string, replacing the value at 'obj'
361*/
362void luaO_tostring (lua_State *L, TValue *obj) {
363 char buff[MAXNUMBER2STR];
364 int len = tostringbuff(obj, buff);
365 setsvalue(L, obj, luaS_newlstr(L, buff, len));
366}
367
368
369

Callers 1

lua_tolstringFunction · 0.85

Calls 2

tostringbuffFunction · 0.85
luaS_newlstrFunction · 0.85

Tested by

no test coverage detected