Sarrus1 / sourcepawn-studio

VSCode extension for SourcePawn scripting
https://sarrus1.github.io/sourcepawn-studio/
MIT License
147 stars 23 forks source link

The preprocessor should not expand macros if there are no parameters afterwards #313

Closed Sarrus1 closed 1 year ago

Sarrus1 commented 1 year ago
#define FOO(%0) #%0

public void OnPluginStart()
{
    char FOO[16] = "hello";
    PrintToServer(FOO);
}

This compiles fine.