preprocess
preprocess copied to clipboard
Asking for advace: ifdef
Dear all:
I check the code and not found this feature,so I ask here.
Is there a plan for add feature like this:
//@ifdef (a && b)
//do something
//@endif
it's useful when we need do lot condition brach.
I know we can use
if (a && b) but if we forget define variable b before use it. this will cause an error. it's not a good practice.
No plans as of now, as it would involve creating a complex parser. You can use multiple nested @ifdefs instead like
// @ifdef a
// @ifdef b
... your code
// @endif
// @endif
+1