mirror of
https://github.com/SerenityOS/serenity
synced 2024-11-02 22:04:47 +00:00
012aaecccf
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.
20 lines
335 B
C++
20 lines
335 B
C++
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <AK/Assertions.h>
|
|
#include <AK/Format.h>
|
|
|
|
#if !defined(KERNEL)
|
|
extern "C" {
|
|
|
|
void ak_verification_failed(char const* message)
|
|
{
|
|
dbgln("VERIFICATION FAILED: {}", message);
|
|
__builtin_trap();
|
|
}
|
|
}
|
|
|
|
#endif
|