Introduce macro to assert and return the assertion condition

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-01-21 17:45:12 +05:00
parent 9ac0314d7a
commit 490df18fd5
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF
3 changed files with 34 additions and 10 deletions

View file

@ -102,6 +102,9 @@ set(CORE_SOURCES
MMCTime.cpp
MTPixmapCache.h
# Assertion helper
Assert.h
)
if (UNIX AND NOT CYGWIN AND NOT APPLE)
set(CORE_SOURCES
@ -1614,7 +1617,7 @@ if(WIN32 OR (UNIX AND APPLE))
)
# FIXME: remove this crap once we stop using msys2
if(MINGW)
# i've not found a solution better than injecting the config vars like this...
# i've not found a solution better than injecting the config vars like this...
# with install(CODE" for everything everything just breaks
install(CODE "
set(QT_PLUGINS_DIR \"${QT_PLUGINS_DIR}\")
@ -1622,7 +1625,7 @@ if(WIN32 OR (UNIX AND APPLE))
set(QT_LIBEXECS_DIR \"${QT_LIBEXECS_DIR}\")
set(CMAKE_SYSTEM_LIBRARY_PATH \"${CMAKE_SYSTEM_LIBRARY_PATH}\")
set(CMAKE_INSTALL_PREFIX \"${CMAKE_INSTALL_PREFIX}\")
"
"
COMPONENT bundle)
install(CODE [[