![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Sep 2004
Posts: 29
Rep Power: 0
![]() |
Multiple conditions in an #ifdef statement
I'm trying to add some test code to a previously written program, and I wanted it to be seperated from the rest of the code using #ifdefs so I can easily disable it. There are multiple test cases, but some of the test code is used for multiple tests.
Basically what I have is this: #ifdef TEST_1 // do stuff #endif #ifdef TEST_2 // do stuff #endif #ifdef TEST_3 // do stuff #endif And what I want is #ifdef TEST_1 OR TEST_2 OR TEST_3 // do stuff #endif Is that possible to do? Thanks |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|