Repository navigation
Why the difference between #ifdef [...] and #if defined(...)?
#6
|
Coming from little to no experience with real C code, I'm just curious on the variation of |
Answered by
tspader
May 24, 2026
Replies: 1 comment
|
No difference. I prefer |
0 replies
Answer selected by
tspader
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No difference. I prefer
#if defined()so that when I need to do#if defined(FOO) && defined(BAR)it has the same shape as a one armed conditional. Just about the purest bikeshedding imaginable.