how to check or condition in ifdef?

Status
Not open for further replies.

vikas_lakhanpal27

Member level 1
or condition in ifdef

Can anyone tell me how to check or condition in Ifdef statement?
I am trying
ifdef (a || b)
but it is not working?

M!k

ifdef

write:
#if defined (a) || defined (b)
Don't trust compiler manuals which say that your version is also OK :-(

bobjee

Newbie level 5
Re: ifdef

Can you please elobrate on that

should i write like
ifdef (a) || `ifdef (b)

Status
Not open for further replies.