diff options
author | Freya Murphy <freya@freyacat.org> | 2023-12-14 18:08:16 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2023-12-14 18:08:16 -0500 |
commit | 00c88659104ce423959151ff6f3f96f6537a6d68 (patch) | |
tree | c2745a95c2b7f15f69f8bfcaa85e0b12626f6142 /src/lib.h | |
download | nbtvis-00c88659104ce423959151ff6f3f96f6537a6d68.tar.gz nbtvis-00c88659104ce423959151ff6f3f96f6537a6d68.tar.bz2 nbtvis-00c88659104ce423959151ff6f3f96f6537a6d68.zip |
testing
Diffstat (limited to '')
-rw-r--r-- | src/lib.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib.h b/src/lib.h new file mode 100644 index 0000000..c007187 --- /dev/null +++ b/src/lib.h @@ -0,0 +1,12 @@ +#pragma once + +#include <stddef.h> + +__attribute__((__noreturn__, format(printf, 1, 2))) +void error_and_die(char *format, ...); + +__attribute__((__noreturn__, format(printf, 1, 2))) +void perror_and_die(char *format, ...); + +void *xalloc(size_t amount); +void *xrealloc(void *ptr, size_t amount); |