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