GMWolf
aka fel666
So i was playing around with macros, Realizing that they are true, preprocessor macros, i tried splitting expressions into multiple macros, Like so:
However, The IDE doesnt always like it, as shown in the code snippet.
I love being able to split expressions, it allows you to 'hack' in new syntax, so i would love it to stay that way.
What would be great is for it to be fixed in the code editor, when used as an argument.
Having worked on parsers, im pretty sure i understand where it gets stuck. Perhaps feeding the preprocessed code to the syntax checker would fix this?
Code:
#macro FOO irandom( //First 1/2
#macro BAR 100) //Second 1/2
//This is legal, and works just fine
var a = FOO BAR;
show_message(a);
//This wont work. IDE shows error
show_message(FOO BAR);
I love being able to split expressions, it allows you to 'hack' in new syntax, so i would love it to stay that way.
What would be great is for it to be fixed in the code editor, when used as an argument.
Having worked on parsers, im pretty sure i understand where it gets stuck. Perhaps feeding the preprocessed code to the syntax checker would fix this?