hi,
"Kima" <nomail@nomail> wrote:
> I have trouble to use #ifdef and #ifndef for multiple conditions. Can you
> provide the correct syntax for the following cases:
>
> 1. #ifdef(a1) ...
> #else #ifdef(a2) ....
> #else ...
>
> 2. #ifdef(a1) & (a1=1) ...
>
> 3. #ifdef(a1) & #ifdef(a2) ...
1. #if (defined(a1))
#elseif (defined(a2))
#else
#end
2. #if (a1 & 1 = a1)
3. #if (a1 & a2)
regards, jr.
Post a reply to this message
|