00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MPF_TRACE_H
00020 #define MPF_TRACE_H
00021
00022
00023
00024
00025
00026
00027 #include <stdio.h>
00028 #include "mpf.h"
00029
00030 APT_BEGIN_EXTERN_C
00031
00032 #ifdef WIN32
00033 static void mpf_debug_output_trace(const char* format, ...)
00034 {
00035 char buf[1024];
00036 va_list arg;
00037 va_start(arg, format);
00038 apr_vsnprintf(buf, sizeof(buf), format, arg);
00039 va_end(arg);
00040
00041 OutputDebugStringA(buf);
00042 }
00043 #else
00044 static APR_INLINE void mpf_debug_output_trace() {}
00045 #endif
00046
00047 static APR_INLINE void mpf_null_trace() {}
00048
00049 APT_END_EXTERN_C
00050
00051 #endif