mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[kernel] Move kassert out of kutil
Continuing moving things out of kutil. The assert as implemented could only ever work in the kernel, so remaining kutil uses of kassert have been moved to including standard C assert instead. Along the way, kassert was broken out into panic::panic and kassert, and the panic.serial namespace was renamed panicking.
This commit is contained in:
@@ -10,10 +10,9 @@
|
||||
|
||||
#include "j6libc/aux.h"
|
||||
|
||||
void _PDCLIB_assert( const char * const message1, const char * const function, const char * const message2 )
|
||||
void _PDCLIB_assert( const char * const message, const char * const function, const char * const file, unsigned line )
|
||||
{
|
||||
fputs( message1, stderr );
|
||||
fputs( function, stderr );
|
||||
fputs( message2, stderr );
|
||||
fprintf( stderr, "Assertion failed: %s, function %s, file %s, line %d.%s",
|
||||
message, function, file, line, _PDCLIB_endl );
|
||||
abort();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user