[X2Go-Commits] [libx2goclient] 05/09: src/x2goclient-utils.h: hide macros gtk-doc and g-ir-scanner stumble upon.

git-admin at x2go.org git-admin at x2go.org
Wed May 13 16:41:35 CEST 2020


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository libx2goclient.

commit 50c826155dde7b738753c5ce39e218fe03f1e796
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Apr 27 23:39:45 2020 +0200

    src/x2goclient-utils.h: hide macros gtk-doc and g-ir-scanner stumble upon.
---
 src/x2goclient-utils.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/x2goclient-utils.h b/src/x2goclient-utils.h
index 02727a3..5e90c6a 100644
--- a/src/x2goclient-utils.h
+++ b/src/x2goclient-utils.h
@@ -31,11 +31,23 @@
 
 G_BEGIN_DECLS
 
+/*
+ * We don't want to document these macros... and we'll also probably make them
+ * internal at a later date anyway via an internal usage macro.
+ *
+ * Also, g-ir-scanner seems to choke on the PASTER symbol for weird reasons.
+ * Probably because g-ir-scanner can't handle and automatically skips va-args
+ * macros.
+ */
+#ifndef __GTK_DOC_IGNORE__
+#ifndef __GI_SCANNER__
 #define EMPTY(...)
 #define DEFER(...) __VA_ARGS__ EMPTY()
 #define OBSTRUCT(...) __VA_ARGS__ DEFER(EMPTY)()
 #define EXPAND(...) __VA_ARGS__
 #define PASTER(x, y) x ## _ ## y
+#endif /* !defined (__GI_SCANNER__) */
+#endif /* !defined (__GTK_DOC_IGNORE__) */
 
 void x2goclient_clear_strings (gpointer data);
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git


More information about the x2go-commits mailing list