#ifdef to the rescue
Recently, I was wondering whether it is better to have two different branches for an application or to have one branch but somehow “configurable” during compilation time.
As I haven’t developed for different architectures for some time, I totally forgot about C’s preprocessor. After few minutes of thinking solution was obvious – in case of C/C++/Objective-C code you can simply use #ifdef.
September 15th, 2011 in
main entries