[cogl/wip/lionel/introspection-1.18: 2/5] cogl-gtype: add missing gtype macros in intermediate macros



commit fabc014dd4a8c372e694f6508df45a49b2a58ce6
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Sun Feb 23 17:24:11 2014 +0000

    cogl-gtype: add missing gtype macros in intermediate macros

 cogl/cogl-buffer-private.h |    2 +-
 cogl/cogl-framebuffer.c    |    6 +++---
 cogl/cogl-object-private.h |    4 +---
 cogl/cogl-onscreen.c       |    6 +++---
 4 files changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/cogl/cogl-buffer-private.h b/cogl/cogl-buffer-private.h
index 09749f2..014eae9 100644
--- a/cogl/cogl-buffer-private.h
+++ b/cogl/cogl-buffer-private.h
@@ -112,7 +112,7 @@ void
 _cogl_buffer_register_buffer_type (const CoglObjectClass *klass);
 
 #define COGL_BUFFER_DEFINE(TypeName, type_name)                         \
-  COGL_OBJECT_DEFINE_WITH_CODE_GTYPE                                    \
+  COGL_OBJECT_DEFINE_WITH_CODE                                          \
   (TypeName, type_name,                                                 \
    _cogl_buffer_register_buffer_type (&_cogl_##type_name##_class))
 
diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c
index c9490cf..fbe4ee5 100644
--- a/cogl/cogl-framebuffer.c
+++ b/cogl/cogl-framebuffer.c
@@ -59,9 +59,9 @@ static CoglUserDataKey wire_pipeline_key;
 
 static void _cogl_offscreen_free (CoglOffscreen *offscreen);
 
-COGL_OBJECT_DEFINE_WITH_CODE (Offscreen, offscreen,
-                              _cogl_offscreen_class.virt_unref =
-                              _cogl_framebuffer_unref);
+COGL_OBJECT_DEFINE_WITH_CODE_GTYPE (Offscreen, offscreen,
+                                    _cogl_offscreen_class.virt_unref =
+                                    _cogl_framebuffer_unref);
 COGL_GTYPE_DEFINE_CLASS (Offscreen, offscreen);
 COGL_OBJECT_DEFINE_DEPRECATED_REF_COUNTING (offscreen);
 COGL_GTYPE_DEFINE_INTERFACE (Framebuffer, framebuffer);
diff --git a/cogl/cogl-object-private.h b/cogl/cogl-object-private.h
index 6019595..baed74f 100644
--- a/cogl/cogl-object-private.h
+++ b/cogl/cogl-object-private.h
@@ -215,9 +215,7 @@ cogl_is_##type_name (void *object)                                      \
 
 #define COGL_OBJECT_DEFINE_WITH_CODE(TypeName, type_name, code)         \
                                                                         \
-COGL_OBJECT_COMMON_DEFINE_WITH_CODE(TypeName,                           \
-                                    type_name,                          \
-                                    do { code; } while (0);)            \
+COGL_OBJECT_COMMON_DEFINE_WITH_CODE(TypeName, type_name, code)          \
                                                                         \
 CoglBool                                                                \
 cogl_is_##type_name (void *object)                                      \
diff --git a/cogl/cogl-onscreen.c b/cogl/cogl-onscreen.c
index fd8eff1..05dd320 100644
--- a/cogl/cogl-onscreen.c
+++ b/cogl/cogl-onscreen.c
@@ -39,9 +39,9 @@
 
 static void _cogl_onscreen_free (CoglOnscreen *onscreen);
 
-COGL_OBJECT_DEFINE_WITH_CODE (Onscreen, onscreen,
-                              _cogl_onscreen_class.virt_unref =
-                              _cogl_framebuffer_unref);
+COGL_OBJECT_DEFINE_WITH_CODE_GTYPE (Onscreen, onscreen,
+                                    _cogl_onscreen_class.virt_unref =
+                                    _cogl_framebuffer_unref);
 COGL_GTYPE_DEFINE_CLASS (Onscreen, onscreen,
                          COGL_GTYPE_IMPLEMENT_INTERFACE (framebuffer));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]