comparison libmpdvdkit2/libdvdcss.h @ 20425:f59726d0761e

Sync with upstream r201.
author diego
date Wed, 25 Oct 2006 11:55:06 +0000
parents 954cdf2171f6
children
comparison
equal deleted inserted replaced
20424:945fa0eb37c0 20425:f59726d0761e
76 76
77 /***************************************************************************** 77 /*****************************************************************************
78 * Functions used across the library 78 * Functions used across the library
79 *****************************************************************************/ 79 *****************************************************************************/
80 #define print_error(dvdcss,msg) _print_error(dvdcss,msg) 80 #define print_error(dvdcss,msg) _print_error(dvdcss,msg)
81 #if defined( _MSC_VER )
82 #include <stdarg.h>
83 __forceinline void print_debug(dvdcss_t dvdcss, const char *msg,...)
84 {
85 va_list args;
86
87 fprintf( stderr, "libdvdcss debug: " );
88 va_start( args, msg );
89 vfprintf( stderr, msg, args );
90 va_end( args );
91 fprintf( stderr, "\n" );
92 }
93 #else
81 #define print_debug(dvdcss,msg,args...) \ 94 #define print_debug(dvdcss,msg,args...) \
82 if( dvdcss->b_debug ) \ 95 if( dvdcss->b_debug ) \
83 { \ 96 { \
84 fprintf( stderr, "libdvdcss debug: " ); \ 97 fprintf( stderr, "libdvdcss debug: " ); \
85 fprintf( stderr, msg, ##args ); \ 98 fprintf( stderr, msg, ##args ); \
86 fprintf( stderr, "\n" ); \ 99 fprintf( stderr, "\n" ); \
87 } 100 }
101 #endif
88 102
89 void _print_error ( dvdcss_t, char * ); 103 void _print_error ( dvdcss_t, char * );
90 104