[SDL] SDL_Init issue

chris.2.dobbs at bt.com chris.2.dobbs at bt.com
Thu May 3 01:50:16 PDT 2007


I didn't know about that one, many thanks, will try it out.
-Chris 

-----Original Message-----
From: sdl-bounces at lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org]
On Behalf Of Gabriele Greco
Sent: 03 May 2007 08:45
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] SDL_Init issue

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

_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


More information about the SDL mailing list