Open 9nix00 opened 9 years ago
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.
if (a && b)
No plans as of now, as it would involve creating a complex parser. You can use multiple nested @ifdefs instead like
@ifdef
// @ifdef a // @ifdef b ... your code // @endif // @endif
+1
Dear all:
I check the code and not found this feature,so I ask here.
Is there a plan for add feature like this:
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.