From 6722ef01e34f75bde72ba29e3279c0d1df030593 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 11 Feb 2023 19:46:23 -0600 Subject: add materials and images processing --- src/util/util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/util') 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 -- cgit v1.2.1