Skip to content

Commit

Permalink
Don't surround file macros with quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
TollyH committed May 10, 2024
1 parent bbf09c1 commit 499cdb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Assembler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1995,9 +1995,9 @@ private bool RunConditionalCheck(string mnemonic, string[] operands)

private void SetFileMacros()
{
SetSingleLineMacro("#FILE_PATH", $"\"{EscapeStringCharacters(currentFilePosition.File)}\"");
SetSingleLineMacro("#FILE_NAME", $"\"{EscapeStringCharacters(Path.GetFileName(currentFilePosition.File))}\"");
SetSingleLineMacro("#FOLDER_PATH", $"\"{EscapeStringCharacters(Path.GetDirectoryName(currentFilePosition.File) ?? "")}\"");
SetSingleLineMacro("#FILE_PATH", EscapeStringCharacters(currentFilePosition.File));
SetSingleLineMacro("#FILE_NAME", EscapeStringCharacters(Path.GetFileName(currentFilePosition.File)));
SetSingleLineMacro("#FOLDER_PATH", EscapeStringCharacters(Path.GetDirectoryName(currentFilePosition.File) ?? ""));
}

/// <summary>
Expand Down

0 comments on commit 499cdb5

Please sign in to comment.