alliedmodders / sourcepawn

A small, statically typed scripting language.
Other
369 stars 63 forks source link

Support strings for cli defines deсlaration #342

Open CrazyHackGUT opened 5 years ago

CrazyHackGUT commented 5 years ago

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.

assyrianic commented 5 years ago

possible precursor to sourcepawn templates?

dvander commented 5 years ago

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

Headline commented 5 years ago

@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.