commit 34b005acdcab56194c9b98cded2edfce277727ca
parent bbb0768e96b9b54c9d45039cf506327bbb126707
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 7 Apr 2025 17:12:55 +0200
Define the SSTL_DESC_NULL constant
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/sstl.h b/src/sstl.h
@@ -55,6 +55,8 @@ struct sstl_desc {
size_t triangles_count;
size_t vertices_count;
};
+#define SSTL_DESC_NULL__ {0}
+static const struct sstl_desc SSTL_DESC_NULL = SSTL_DESC_NULL__;
/* Forward declaration of external types */
struct logger;
@@ -111,4 +113,3 @@ sstl_get_desc
END_DECLS
#endif /* SSTL_H */
-