[telepathy-glib/master] Make gtk-doc notice TP_ERROR_STR_TERMINATED.
Will Thompson
will.thompson at collabora.co.uk
Tue May 26 08:23:10 PDT 2009
:'(
---
tools/glib-errors-str-gen.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tools/glib-errors-str-gen.py b/tools/glib-errors-str-gen.py
index c15889a..f2f6744 100644
--- a/tools/glib-errors-str-gen.py
+++ b/tools/glib-errors-str-gen.py
@@ -51,6 +51,11 @@ class Generator(object):
self.b(' case TP_ERROR_%s:' % uc_nick)
self.b(' return %s;' % name)
+ self.h('')
+ self.h("/* Work around a gtkdoc bug where it doesn't see the last")
+ self.h(" * definition in the file unless there's misc after it")
+ self.h(" */")
+
self.b(' default:')
self.b(' g_return_val_if_reached (NULL);')
self.b(' }')
--
1.5.6.5
More information about the telepathy-commits
mailing list