summaryrefslogtreecommitdiff
path: root/AK/Assertions.cpp
AgeCommit message (Collapse)Author
2023-02-05AK: Always define ak_assertion_failed, even when NDEBUG is falseAndrew Kaster
Just because we may compile serenity with or without NDEBUG doesn't mean that consuming projects or Ports will share the setting. Always define the custom assertion function so that we don't have to keep the same debug settings between all projects.
2022-10-06AK: Print VERIFY() error messages in release buildsAndreas Kling
Until now, VERIFY() failures would just cause a __builtin_trap() in release builds, which made them a bit too harsh. This commit adds an out-of-line helper function that prints the error before trapping.