mirror of
https://github.com/peter-tanner/advent-of-code-2021.git
synced 2024-11-30 11:10:20 +08:00
9 lines
173 B
C
9 lines
173 B
C
|
#include <stdlib.h>
|
||
|
|
||
|
#ifndef CHECK_ALLOC
|
||
|
#define CHECK_ALLOC(v) \
|
||
|
if ((v) == NULL) \
|
||
|
{ \
|
||
|
exit(EXIT_FAILURE); \
|
||
|
}
|
||
|
#endif
|