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.
重要な機能を追加または変更することを忘れないように、マクロを介してアーカイブビルド(配布用)をブロックできるようにしたいです。
理想的には、次のことを行います。
#define REQUIRE_FIX(ERROR_MSG) (\ #if __ \ #error ERROR_MSG \ #endif)
__現在のビルドタイプ/スキームを確認するには、何を入力する必要がありますか?
__
ターゲットのビルドオプションで、ビルドスキームごとにプリプロセッサ定義を設定できます。
通常、アーカイブビルドをブロックするには、
#ifndef DEBUG #error "Fix this first!" #endif