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.
設計上、 によってQ_ASSERTアプリケーションがリリース モードで失敗することはありません。私の質問はQ_ASSERT、リリース モードでまだ実行中のコードですか?
Q_ASSERT
bool assertTest() { int x = 0; Q_ASSERT(++x); return x == 1; }
assertTest()リリース モードでは、デバッグ モードとは異なる値を返しますか?
assertTest()