vararg LOG() macro in 1.4.7



Epiphany-1.4.7 makes use of a vararg LOG() macro. This is not C89
compliant. I'm trying to build 1.4.7 on IRIX. While the SGI c99
compiler can grok the LOG() macro, the SGI C++ compiler cannot. So,
should I submit a patch that creates LOG#() macros where # >= 2 for
the number of macros in the LOG call and substitute accordingly in the
source files or should I create a static inline function in
lib/ephy-debug.h:
  static inline LOG(char *format, ...) {}
and then add semicolons to the end of all LOG() calls?

-- 
albert chin (china thewrittenword com)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]