| 44 | |
| 45 | |
| 46 | int luaV_tostring (lua_State *L, StkId obj) { |
| 47 | if (!ttisnumber(obj)) |
| 48 | return 0; |
| 49 | else { |
| 50 | char s[LUAI_MAXNUMBER2STR]; |
| 51 | lua_Number n = nvalue(obj); |
| 52 | int l = lua_number2str(s, n); |
| 53 | setsvalue2s(L, obj, luaS_newlstr(L, s, l)); |
| 54 | return 1; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | |
| 59 | static void traceexec (lua_State *L) { |
no test coverage detected