]> git.ozlabs.org Git - petitboot/blobdiff - lib/talloc/talloc.c
i18n: Mark translatable strings for ncurses UI
[petitboot] / lib / talloc / talloc.c
index 95a0a6a0b395a82990170e1efae5227f8fdce544..dd108938759e2629737ddd20e9880642cd390c30 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 
+#if !defined(NDEBUG)
+#include <assert.h>
+#define TALLOC_ABORT(reason) do{ \
+       fprintf(stderr, "%s: name: %s\n", __func__, tc->name); \
+       assert(0 && reason);} while (0)
+#endif
+
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif