gctf2023/pwn/flipper/dist/userspace/libc/include/assert.h
2023-11-24 13:11:34 -05:00

10 lines
227 B
C

#pragma once
#include <stdio.h>
#include <stdlib.h>
#define assert(X) do { if (!(X)) {\
printf("Assertion failed: '%s', file %s, function %s, line %d\n", #X, __FILE__, __FUNCTION__, __LINE__); \
exit(-1); } } while (0)