mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 21:34:09 +00:00
cogl: Various g-i fixes
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3431>
This commit is contained in:
parent
79846ff263
commit
46da153548
@ -63,6 +63,7 @@ G_BEGIN_DECLS
|
||||
#define COGL_PRIVATE(x) private_member_ ## x
|
||||
#endif
|
||||
|
||||
#ifndef __GI_SCANNER__
|
||||
/* To help catch accidental changes to public structs that should
|
||||
* be stack allocated we use this macro to compile time assert that
|
||||
* a struct size is as expected.
|
||||
@ -72,7 +73,9 @@ typedef struct { \
|
||||
char compile_time_assert_ ## TYPE ## _size[ \
|
||||
(sizeof (TYPE) == (SIZE)) ? 1 : -1]; \
|
||||
} _ ## TYPE ## SizeCheck
|
||||
|
||||
#else
|
||||
#define COGL_STRUCT_SIZE_ASSERT(TYPE, SIZE)
|
||||
#endif
|
||||
|
||||
typedef struct _CoglFramebuffer CoglFramebuffer;
|
||||
|
||||
|
@ -34,7 +34,6 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define cogl_clutter_winsys_has_feature cogl_clutter_winsys_has_feature_CLUTTER
|
||||
COGL_DEPRECATED_FOR (cogl_has_feature)
|
||||
COGL_EXPORT gboolean
|
||||
cogl_clutter_winsys_has_feature (CoglWinsysFeature feature);
|
||||
|
Loading…
x
Reference in New Issue
Block a user