Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to check or condition in ifdef?

Status
Not open for further replies.

vikas_lakhanpal27

Member level 1
Joined
Jan 16, 2008
Messages
39
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,522
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

Advanced Member level 2
Joined
Apr 22, 2002
Messages
682
Helped
109
Reputation
218
Reaction score
35
Trophy points
1,308
Activity points
4,819
`ifdef

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

bobjee

Newbie level 5
Joined
Jun 2, 2009
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,337
Re: `ifdef

Can you please elobrate on that

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

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top