preprocess icon indicating copy to clipboard operation
preprocess copied to clipboard

Asking for advace: ifdef

Open 9nix00 opened this issue 10 years ago • 2 comments

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.

9nix00 avatar Jul 17 '15 06:07 9nix00

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

Frizi avatar Sep 18 '15 18:09 Frizi

+1

illumination517 avatar Mar 21 '16 11:03 illumination517