Web lists-archives.com

A macro to add


I found that I need to convert a bool variable to its string representation, e.g. "FALSE" or "TRUE". I "invented" a macro:

#define G_BOOL_TO_STRING(x) (x ? "TRUE" : "FALSE")

I put this macro to ./glib/gmacros.h file and added a brief description ./glib/docs.c

Everything looks good but gtk-doc ignores it. Do I need to explicitly mention this macro in some file? If so, what file? BTW, do we need this macro in glib?


-Pavlo Solntsev
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

gtk-devel-list mailing list