コード例 #1
0
ファイル: avmplusDebugger.cpp プロジェクト: bsdf/trx
 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 << ",";
         }
     }
 }
コード例 #2
0
ファイル: avmplusDebugger.cpp プロジェクト: changm/tessa
 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;
 }