mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03: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.
21 lines
335 B
C++
21 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
|