mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
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.
19 lines
532 B
C
19 lines
532 B
C
/* _PDCLIB_assert( const char * )
|
|
|
|
This file is part of the Public Domain C Library (PDCLib).
|
|
Permission is granted to use, modify, and / or redistribute at will.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <assert.h>
|
|
|
|
#include "j6libc/aux.h"
|
|
|
|
void _PDCLIB_assert( const char * const message, const char * const function, const char * const file, unsigned line )
|
|
{
|
|
fprintf( stderr, "Assertion failed: %s, function %s, file %s, line %d.%s",
|
|
message, function, file, line, _PDCLIB_endl );
|
|
abort();
|
|
}
|