1 // objective: test tooltip in XHTML 2 // check: 085__tooltip_8cpp.xml 3 // config: SOURCE_BROWSER=YES 4 /** \file */ 5 6 7 /** \brief the unit */ 8 FILE *unit = NULL; 9 10 /** a general open macro */ 11 #define FOPEN_MACRO(fn ,mod) \ 12 if ((unit = fopen(fn, mod)) == NULL) \ 13 { \ 14 msg(OPEN_ERR,strerror(errno)); \ 15 } 16 17 /** a general close macro */ 18 #define FCLOSE_MACRO \ 19 if (fclose(unit) != 0) \ 20 { \ 21 msg(CLOSE_ERR,strerror(errno)); \ 22 } 23