summaryrefslogtreecommitdiff
path: root/glcpp.h
diff options
context:
space:
mode:
Diffstat (limited to 'glcpp.h')
-rw-r--r--glcpp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/glcpp.h b/glcpp.h
index 503731b85b..6171ce8b4a 100644
--- a/glcpp.h
+++ b/glcpp.h
@@ -164,4 +164,10 @@ xtalloc_strndup (const void *t, const char *p, size_t n);
char *
xtalloc_asprintf (const void *t, const char *fmt, ...);
+void *
+_xtalloc_reference_loc (const void *context,
+ const void *ptr, const char *location);
+
+#define xtalloc_reference(ctx, ptr) (_TALLOC_TYPEOF(ptr))_xtalloc_reference_loc((ctx),(ptr), __location__)
+
#endif