diff options
| author | Manish Singh <yosh@gimp.org> | 2005-06-10 00:51:48 +0000 |
|---|---|---|
| committer | Manish Singh <yosh@src.gnome.org> | 2005-06-10 00:51:48 +0000 |
| commit | 4d069ef8b7eb0b827170caf76a46f52771dc1465 (patch) | |
| tree | 5ab4f7a88326c99073f960328d1317fe7e8595db | |
| parent | c91990e15aa4df649f90424d93c45e9bc8e0909b (diff) | |
| download | pygobject-4d069ef8b7eb0b827170caf76a46f52771dc1465.tar.gz pygobject-4d069ef8b7eb0b827170caf76a46f52771dc1465.tar.xz pygobject-4d069ef8b7eb0b827170caf76a46f52771dc1465.zip | |
gobject/pygobject.h Use G_STMT_START/END for init_ defines.
2005-06-09 Manish Singh <yosh@gimp.org>
* gobject/pygobject.h
* gtk/pygtk.h: Use G_STMT_START/END for init_ defines.
| -rw-r--r-- | gobject/pygobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gobject/pygobject.h b/gobject/pygobject.h index b0c387e..7ed40b9 100644 --- a/gobject/pygobject.h +++ b/gobject/pygobject.h @@ -245,7 +245,7 @@ struct _PyGObject_Functions *_PyGObject_API; PyEval_RestoreThread(_save); \ } G_STMT_END -#define init_pygobject() { \ +#define init_pygobject() G_STMT_START { \ PyObject *gobject = PyImport_ImportModule("gobject"); \ if (gobject != NULL) { \ PyObject *mdict = PyModule_GetDict(gobject); \ @@ -262,7 +262,7 @@ struct _PyGObject_Functions *_PyGObject_API; "could not import gobject"); \ return; \ } \ -} +} G_STMT_END #endif /* !_INSIDE_PYGOBJECT_ */ |
