printf-like syntax

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

 



I have created an extended version of printf for a gaming engine. It has the possibility to print any in-game entity. Because of portability I didn't use the otherwise nice feature to customize printf that gcc has. But there is one thing that I however would like to use, the printf format attribute:

*#ifdef LINUX
#define PRINTF_SYNTAX __attribute__((format(printf,/m/,/n/)))
#else
#define PRINTF_SYNTAX
#endif

*My problem is that each time I use one of my custom specifiers GCC warns about it. Is there some way to stop that, like adding the specifier to that list but not to printf?
--



*//David Sveningsson [eXt]*
______________________________________
Freelance Coder | Game Developer Student
[ http://sidvind.com ]  [ http://nitroxy.com ]

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux