This commit is contained in:
2023-08-31 03:26:16 +02:00
parent 47fed0fafa
commit 00b5cb548a
50 changed files with 21616 additions and 262 deletions

14
clib/massert.c Normal file
View 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);
}