[libglnx] macros: Avoid scanning macros



commit 71d875543c91b2b6dd710ce6c78696c6c332a1ae
Author: Colin Walters <walters verbum org>
Date:   Tue Jun 27 21:14:34 2017 -0400

    macros: Avoid scanning macros
    
    `g-ir-scanner` is confused by some of the syntax extensions in `G_IN_SET()`;
    none of this is applicable to bindings, so just skip it.

 glnx-macros.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/glnx-macros.h b/glnx-macros.h
index b5127b7..24705af 100644
--- a/glnx-macros.h
+++ b/glnx-macros.h
@@ -28,6 +28,9 @@
 
 G_BEGIN_DECLS
 
+/* All of these are for C only. */
+#ifndef __GI_SCANNER__
+
 /* Taken from https://github.com/systemd/systemd/src/basic/string-util.h
  * at revision v228-666-gcf6c8c4
  */
@@ -179,4 +182,6 @@ G_BEGIN_DECLS
          _GLNX_MAKE_ANONYMOUS(_glnx_ht_iter_it_), kt, k, \
          gpointer, _GLNX_MAKE_ANONYMOUS(_glnx_ht_iter_v_))
 
+#endif /* GI_SCANNER */
+
 G_END_DECLS


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