Changeset 124 for trunk/UBFTarget.pas


Ignore:
Timestamp:
Jan 14, 2022, 3:03:42 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Use IFDEF UNIX instead of IFDEF LINUX.
  • Modified: Localized error message.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UBFTarget.pas

    r115 r124  
    6363implementation
    6464
     65resourcestring
     66  SUnsupportedCommand = 'Unsupported command %d';
     67
    6568{ TMachineOperation }
    6669
     
    336339        NewProgram[NewProgramIndex] := FProgram[FProgramIndex];
    337340      end;
    338       else raise Exception.Create(Format('Unsupported command %d', [FProgram[FProgramIndex].Command]));
     341      else raise Exception.Create(Format(SUnsupportedCommand, [FProgram[FProgramIndex].Command]));
    339342    end;
    340343    DebugSteps.UpdateTargetPos(FirstIndex, FProgramIndex, NewProgramIndex, NewTargetIndex);
     
    440443        end;
    441444      end;
    442       else raise Exception.Create(Format('Unsupported command %d', [FProgram[FProgramIndex].Command]));
     445      else raise Exception.Create(Format(SUnsupportedCommand, [FProgram[FProgramIndex].Command]));
    443446    end;
    444447    DebugSteps.UpdateTargetPos(FirstIndex, FProgramIndex, NewProgramIndex, NewTextIndex);
Note: See TracChangeset for help on using the changeset viewer.