** Convert a number object to a Lua string, replacing the value at 'obj' */
| 462 | ** Convert a number object to a Lua string, replacing the value at 'obj' |
| 463 | */ |
| 464 | void 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 |
no test coverage detected