gctf2023/pwn/flipper/dist/userspace/libc/include/assert.h

10 lines
227 B
C
Raw Normal View History

2023-11-24 18:11:34 +00:00
#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)