Newer
Older
minerva / Kernel / Prekernel / Assertions.cpp
@minerva minerva on 13 Jul 372 bytes Initial commit
/*
 * 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();
}