/* * Internal RTL definitions. * * Copyright © 2025 Samuel Lidén Borell * * SPDX-License-Identifier: EUPL-1.2+ OR LGPL-2.1-or-later */ #ifndef SLUL_INTERNAL_H #define SLUL_INTERNAL_H #include "rtl.h" #define OOM_CHECK(p) SLUL_OOM_CHECK(p, __FILE__, __LINE__) #define CHECK(cond, msg) do { \ if (!(cond)) SLUL_fail(__FILE__, __LINE__, msg); \ } while (0); #define FAIL(msg) CHECK(false, msg) unsigned const char *SLUL__decode_string( const struct String *str, SlulInt *len_out); SLUL_NORETURN void SLUL_fail(const char *file, int line, const char *msg); #endif