We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d03ce commit 0c80ecaCopy full SHA for 0c80eca
cogl/cogl/cogl-types.h
@@ -67,12 +67,15 @@ G_BEGIN_DECLS
67
* be stack allocated we use this macro to compile time assert that
68
* a struct size is as expected.
69
*/
70
+#ifndef __GI_SCANNER__
71
#define COGL_STRUCT_SIZE_ASSERT(TYPE, SIZE) \
72
typedef struct { \
73
char compile_time_assert_ ## TYPE ## _size[ \
74
(sizeof (TYPE) == (SIZE)) ? 1 : -1]; \
75
} _ ## TYPE ## SizeCheck
-
76
+#else
77
+#define COGL_STRUCT_SIZE_ASSERT(TYPE, SIZE)
78
+#endif
79
/**
80
* CoglHandle:
81
*
0 commit comments