Fast preprocessor if not flag

Is there any #if not for a quick flag?

I know

 #if myFlag #else #endif 

may work, but it is not very good if there is nothing between if and else .

+7
swift
source share
1 answer

I did not try enough, I found out

 #if !myFlag #endif 

works good!

+11
source share

All Articles