void Debugger::traceArgumentsString(PrintWriter& prw) { DebugStackFrame* frame = (DebugStackFrame*)frameAt(0); int count; Atom* arr; if (frame && frame->arguments(arr, count)) { for(int i=0; i<count; i++) { prw << asAtom(arr[i]); if (i+1 < count) prw << ","; } } }
Stringp Debugger::traceArgumentsString() { Stringp args = core->kEmptyString; DebugStackFrame* frame = (DebugStackFrame*)frameAt(0); int count; Atom* arr; if (frame && frame->arguments(arr, count)) { Stringp comma = core->newConstantStringLatin1(","); for(int i=0; i<count; i++) { args = core->concatStrings(args, core->format(arr[i])); if (i+1 < count) args = core->concatStrings(args, comma); } } return args; }