2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: assert() function for the kernel.
8 #include <exec/execbase.h>
9 #include <exec/alerts.h>
10 #include <proto/exec.h>
12 #include <aros/arossupportbase.h>
14 extern struct ExecBase
*SysBase
;
16 void __assert (const char * expr
, const char * file
, unsigned int line
)
18 /* TODO: Make this call the kernel.resource KernelAssertFail() fn */
20 /* Awkward, but I need a global SysBase variable */
21 struct AROSSupportBase
*AROSSupportBase
;
23 AROSSupportBase
= (struct AROSSupportBase
*)SysBase
->DebugData
;
25 /* Basically, this is the body of an KASSERT() */
26 AROSSupportBase
->kprintf("\x07%s::%ld: assertion failed: %s\n",