MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaO_tostring

Function luaO_tostring

lib/lua/src/lobject.c:374–378  ·  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

372** Convert a number object to a Lua string, replacing the value at 'obj'
373*/
374void luaO_tostring (lua_State *L, TValue *obj) {
375 char buff[MAXNUMBER2STR];
376 int len = tostringbuff(obj, buff);
377 setsvalue(L, obj, luaS_newlstr(L, buff, len));
378}
379
380
381

Callers 1

lua_tolstringFunction · 0.85

Calls 2

tostringbuffFunction · 0.85
luaS_newlstrFunction · 0.85

Tested by

no test coverage detected