> I don't know how your macros are implemented, but variable length 
> may not be at all supported on MSVC variants, in fact it may not 
> even treat it as a warning but treat it as a compile-time error.

Here's what they kinda look like now (from memory):

#ifdef DEBUG

#ifdef _WIN32
#define DEBUG_STREAM            stdout  /* allow redir to file */
#else
#define DEBUG_STREAM            stderr
#endif

#define MSG( level, format, args... )                           \
        if ( level <= tess_dbg_level ) {                                \
                fprintf( DEBUG_STREAM, format, ## args );               \
                fflush( DEBUG_STREAM );                                 \
        }

#else

#define MSG( level, format, args... )

#endif

You can now set tess_dbg_level with an environment variable
GLU_TESS_DBG_LEVEL at runtime.  I'll be committing this stuff on the weekend
(or changing it now if required).

-- Gareth


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to