Is it possible to ORe some identifiers with #ifdef or #ifndef?
This does not work:
#ifndef ID_1 || ID_2 || ....
This is a discussion on ORe identifier: #ifndef ID_1 || ID_2 || .... within the C Programming forums, part of the General Programming Boards category; Is it possible to ORe some identifiers with #ifdef or #ifndef? This does not work: #ifndef ID_1 || ID_2 || ...
Is it possible to ORe some identifiers with #ifdef or #ifndef?
This does not work:
#ifndef ID_1 || ID_2 || ....
Code:#if !(defined ID_1 || defined ID_2)
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Thx for your help. But it just works this way:
mfgCode:#if (!defined ID_1 || !defined ID_2)