sourcepawn icon indicating copy to clipboard operation
sourcepawn copied to clipboard

Support strings for cli defines deсlaration

Open CrazyHackGUT opened this issue 5 years ago • 3 comments

Add support for definition string as defines. SPComp has support declare defines from console arguments, like:

./spcomp NAME=VALUE sourcecode.sp

But passing string as values doesn't supported.

CrazyHackGUT avatar Jun 18 '19 18:06 CrazyHackGUT

possible precursor to sourcepawn templates?

assyrianic avatar Jun 22 '19 05:06 assyrianic

#define is not really something we want to encourage more of.

dvander avatar Jun 22 '19 17:06 dvander

@dvander

The primary use case for this is for versioning of sp scripts in ci environments. I agree with you, but this specific situation seems justified to me.

Headline avatar Jun 22 '19 17:06 Headline