CoD4x_Server icon indicating copy to clipboard operation
CoD4x_Server copied to clipboard

Add C-like preprocessor directives to .gsx extension.

Open T-Maxxx opened this issue 7 years ago • 5 comments

... as mentioned in PR #186 I think it's a good idea to add some simple preprocessor directives for conditional compiling, "#define" for symbols (+ macro).

T-Maxxx avatar Sep 21 '17 14:09 T-Maxxx

Support for a foreach would also be nice if you looking at adding more functionality to gsc

MichaelHillcox avatar Oct 02 '17 17:10 MichaelHillcox

Right now the script compiling routine is a bunch of inlined functions, almost completely unreadable. Some keywords like for, if, thread, self are sitting here and this is the place where foreach must be put. Doing something with script before compiling much easier as you can see in PR's code.

T-Maxxx avatar Oct 02 '17 17:10 T-Maxxx

why this is still open: https://github.com/callofduty4x/CoD4x_Server/pull/186#commitcomment-24841808

D4edalus avatar Nov 16 '17 17:11 D4edalus

Because it was opened after #186 and I will try to do something later.

T-Maxxx avatar Nov 16 '17 17:11 T-Maxxx

there was no question, it was a clarification

D4edalus avatar Nov 16 '17 18:11 D4edalus