[SDL] SDL_Init issue
Gabriele Greco
gabriele.greco at darts.it
Thu May 3 00:44:41 PDT 2007
chris.2.dobbs at bt.com wrote:
> BTW the problem was simply a trace line with one too few %s (the extraneous string input was rather large too)...should have tried the usual disable trace before looking any further!
>
If you use GCC with __attribute__ you can make your trace calls return a
warning if an error of this type occurs, in your c/c++ header, here is
an example:
#if __GNUC__ >= 3
void trace(const char *module, int level, const char *format, ...)
__attribute__ ((format(printf,3,4)));
#else
void trace(const char *module, int level, const char *format, ...);
#endif
--
Bye,
Gabry
More information about the SDL
mailing list