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