summaryrefslogtreecommitdiff
path: root/src/util/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 71cae4e..db957c6 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -88,4 +88,11 @@ do { \
} \
} while (0)
+
+/* macro to ensure tag type matches what we expect */
+#define KAI_CHECK_TAG_TYPE(expected) \
+if (strcmp(src->type, expected) != 0) { \
+ return -1; \
+}
+
#endif