summaryrefslogtreecommitdiffstats
path: root/helpers.h
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-07-07 19:30:39 -0400
committerMalfurious <m@lfurio.us>2023-07-07 19:30:39 -0400
commitd1fc03d6758dcb7ccca3e4255114d85acfad08d4 (patch)
treefe756d0f92957bc426bddf450c682ab5a65c3ede /helpers.h
parentd622a30a82f8ac6914926a5bfdc0e31dff6ce55d (diff)
downloadmisplays-d1fc03d6758dcb7ccca3e4255114d85acfad08d4.tar.gz
misplays-d1fc03d6758dcb7ccca3e4255114d85acfad08d4.zip
Add malloc wrapper
Abort on allocation failure. This is mostly done as a formality, as Linux tends to over-commit memory anyway. In the event of most failures, we won't have a reasonable recovery either. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'helpers.h')
-rw-r--r--helpers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/helpers.h b/helpers.h
index 7b85319..e0cd8c5 100644
--- a/helpers.h
+++ b/helpers.h
@@ -2,6 +2,9 @@
#include <ncurses.h>
#include <panel.h>
+#include <stddef.h>
+
+extern void *xmalloc(size_t size);
extern void cursinit(void);
extern void cursupdate(void);