summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Goldblatt <davidgoldblatt@fb.com>2019-03-20 13:06:53 -0700
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2019-04-15 16:48:12 -0700
commitb92c9a1a81f3f68da87afe5887d8450fef0700d3 (patch)
tree12077ecd87c07e9abee2256a3fec1767447e156d /include
parentf95a88fcd92e8ead1a6c5c8b2ca8c401c6eba162 (diff)
Safety checks: Indirect through a function.
This will let us share code on failure pathways.pathways
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/safety_check.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/jemalloc/internal/safety_check.h b/include/jemalloc/internal/safety_check.h
new file mode 100644
index 00000000..52157d16
--- /dev/null
+++ b/include/jemalloc/internal/safety_check.h
@@ -0,0 +1,6 @@
+#ifndef JEMALLOC_INTERNAL_SAFETY_CHECK_H
+#define JEMALLOC_INTERNAL_SAFETY_CHECK_H
+
+void safety_check_fail(const char *format, ...);
+
+#endif /*JEMALLOC_INTERNAL_SAFETY_CHECK_H */