2005-04-28 プリプロセッサ その他 #include <stdio.h> #define DEBUG 1 int main() { #if DEBUG printf("デバッグ中\n"); #else printf("本番です\n"); #endif return 0; }#define DEBUG 0 にすると、本番環境用のソースコードになります。