diff options
Diffstat (limited to 'src/util/util.h')
-rw-r--r-- | src/util/util.h | 7 |
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 |