mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-09 00:22:43 +02:00
This is done by using a FixedStringBuffer as the foundation to perform string formatting, which ensures that we avoid memory allocations in the prekernel stage.
15 lines
372 B
C++
15 lines
372 B
C++
/*
|
|
* Copyright (c) 2024, Liav A. <liavalb@hotmail.co.il>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <Kernel/Prekernel/DebugOutput.h>
|
|
|
|
void __assertion_failed(char const* msg, char const* file, unsigned line, char const* func)
|
|
{
|
|
write_debug_output("ASSERTION FAILED: {}\n", msg);
|
|
write_debug_output("{}:{} in {}\n", file, line, func);
|
|
halt();
|
|
}
|