Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Release シンボルと Debug シンボルの両方が定義されている場合にプロジェクトがコンパイルされないように、前処理ディレクティブを使用して制限する方法はありますか?
私にお知らせください。
ここを参照してください。これによると、VC++でも機能します。
C/C++ の場合:
#if defined (Debug) && defined (Release) #error Debug and Release are both defined ! #endif