/* * Minimal bootstrap RTL (runtime library) - Failure handling. * * Copyright © 2025 Samuel Lidén Borell * * SPDX-License-Identifier: EUPL-1.2+ OR LGPL-2.1-or-later OR MIT-0 */ #include #include #include "rtl.h" SLUL_NORETURN void SLUL_assert_fail(const char *expr, const char *file, int line) { fprintf(stderr, "%s:%d: Assertion `%s` failed.\n", file, line, expr); abort(); }