blob: fb38c682758d3034022b59a045ce46aa08baad2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* -------------------------------------------
Copyright (C) 2025, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
#include <libSystem/SystemKit/Err.h>
#include <libSystem/SystemKit/Verify.h>
using namespace LibSystem;
IMPORT_C Void _rtl_assert(Bool expr, const Char* origin) {
if (!expr) {
PrintOut(nullptr, "Assertion failed: %s\r", origin);
libsys_syscall_arg_1(SYSCALL_HASH("_rtl_debug_break"));
}
}
|