at work
This commit is contained in:
14
clib/massert.c
Normal file
14
clib/massert.c
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright 2022 Oleg Borodin <borodin@unix7.org>
|
||||
*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <massert.h>
|
||||
|
||||
void x__assert(char* path, int line, const char* func) {
|
||||
printf("%s:%d: assert error in %s\n", path, line, func);
|
||||
exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user