Obsolete Members for <QtAssert>
<QtAssert> 클래스의 다음 멤버는 더 이상 사용되지 않습니다. 이들은 이전 소스 코드의 작동을 유지하기 위해 제공됩니다. 새 코드에서는 사용하지 않는 것이 좋습니다.
매크로
(deprecated) void | Q_ASSUME(bool expr) |
매크로 문서
[deprecated]
void Q_ASSUME(bool expr)
이 매크로는 더 이상 사용되지 않습니다. 새 코드에 사용하지 않는 것이 좋습니다.
컴파일러가 expr 를 true
로 가정하도록 합니다.
이 매크로는 일부 컴파일러 버전에서 코드에 가정을 삽입하지 않았을 때보다 더 나쁜 코드를 생성하는 것으로 알려져 있습니다. 매크로에 전달된 인수는 릴리스 모드에서도 일부 컴파일러에서는 항상 평가되지만 다른 컴파일러에서는 평가되지 않으므로 애플리케이션 코드는 이러한 동작의 차이를 알고 있어야 합니다.
새 코드에서는 사용하지 마세요. 이전 코드와의 호환성을 위해 그대로 유지되며 다음 주요 버전 Qt에서 제거될 가능성이 높습니다.
Q_ASSERT(), Q_UNREACHABLE() 및 Q_LIKELY()도 참조하세요 .
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.