callofduty4x / CoD4x_Server

Extended Call of Duty 4 server
https://cod4x.ovh
GNU Affero General Public License v3.0
330 stars 122 forks source link

Add C-like preprocessor directives to .gsx extension. #187

Open T-Maxxx opened 7 years ago

T-Maxxx commented 7 years ago

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

MichaelHillcox commented 7 years ago

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

T-Maxxx commented 7 years ago

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.

D4edalus commented 6 years ago

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

T-Maxxx commented 6 years ago

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

D4edalus commented 6 years ago

there was no question, it was a clarification