From 6c4124a36e7863b86d42db7c5034af9c1fb77483 Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Mon, 12 Jun 2017 15:44:51 +0200 Subject: Fix documentation of enum Glib::IOCondition * glib/src/iochannel.hg: The code snippet needs a fix when IOCondition is a scoped enum (enum class). Doxygen needs "@enum IOCondition" before the extra documentation. --- glib/src/iochannel.hg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/glib/src/iochannel.hg b/glib/src/iochannel.hg index 63b0c546..7a3ade14 100644 --- a/glib/src/iochannel.hg +++ b/glib/src/iochannel.hg @@ -18,7 +18,7 @@ _DEFS(glibmm,glib) #include -#include //For the GIOChannel enum values. +#include //For the GIOCondition enum values. #include #include #include @@ -40,13 +40,14 @@ _WRAP_ENUM(IOStatus, GIOStatus, NO_GTYPE, s#^EOF$#ENDOFFILE#) _WRAP_ENUM(IOFlags, GIOFlags, NO_GTYPE) -/** A bitwise combination representing an I/O condition to watch for on an +/** @enum IOCondition + * A bitwise combination representing an I/O condition to watch for on an * event source. * The flags correspond to those used by the %poll() system call * on UNIX (see man 2 poll). To test for individual flags, do * something like this: * @code - * if((condition & Glib::IO_OUT) != 0) + * if ((condition & Glib::IOCondition::OUT) == Glib::IOCondition::OUT) * do_some_output(); * @endcode */ -- cgit v1.2.1