preprocessor

If there is something important you think is missing in the current version of ZGameEditor then you can post a feature request here!

Moderator: Moderators

Post Reply
kattle87
Posts: 402
Joined: Wed Sep 26, 2007 9:06 am
Location: Italy

preprocessor

Post by kattle87 »

I would really like a Preprocessor feature like the #DEFINE directive in ansi-C.
All is needed is a substitution of keywords with predefined strings BEFORE compiling so it should be not so much impossible. I would write it by myself if i knew Pascal. But i do know only C/C++ :(

A preprocessor (might be a component you can add in the "content" list, or in a list on his own like "DEFINES") is usefull because you can replace const variables and also simple functions like "#DEFINE ArcSin(X) 2*arctan (x/(1+sqrt(1-x^2)))". This would help in keep the code cleaned and could create some kind of "referenced functions" ;)
Post Reply