Skip to content

Commit

Permalink
Emit "x" instead of " x" on "#error x".
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlaan committed Jun 18, 2024
1 parent efee61b commit a416853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Projects/ISPP/IsppPreprocessor.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ function TPreprocessor.ProcessPreprocCommand(Command: TPreprocessorCommand;
begin
{ Also see ErrorFunc in IsppFuncs }
if Params = '' then Params := 'Error';
RaiseError(Params);
RaiseError(Params.Trim);
end;
pcPragma: Pragma(Parser);
pcPrint: Params := ToStr(Evaluate).AsStr;
Expand Down

0 comments on commit a416853

Please sign in to comment.