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