Bug with #define
JakubKosmaty opened this issue · 2 comments
JakubKosmaty commented
fakuivan commented
As a temporary workaround you can append an empty string at the beginning of the define, like this
#include <sourcemod>
// Add the "" ... before the string
#define A_THING "" ... "A thing"
public void OnPluginStart()
{
PrintToServer("Hello, World!" ... "\n" ... A_THING);
}
which prints
Hello, World!
A thing
This is still a workaround so don't consider this issue closed
RussianRonin commented
If you look at the second pull request I opened (#13)... it does a much better job of handling #define lines in sourcepawn.