UniMRCP  1.7.0
mpf_trace.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2015 Arsen Chaloyan
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MPF_TRACE_H
18 #define MPF_TRACE_H
19 
20 /**
21  * @file mpf_trace.h
22  * @brief MPF Tracer
23  */
24 
25 #include <stdio.h>
26 #include "mpf.h"
27 
29 
30 #ifdef WIN32
31 static void mpf_debug_output_trace(const char* format, ...)
32 {
33  char buf[1024];
34  va_list arg;
35  va_start(arg, format);
36  apr_vsnprintf(buf, sizeof(buf), format, arg);
37  va_end(arg);
38 
39  OutputDebugStringA(buf);
40 }
41 #else
42 static APR_INLINE void mpf_debug_output_trace() {}
43 #endif
44 
45 static APR_INLINE void mpf_null_trace() {}
46 
48 
49 #endif /* MPF_TRACE_H */
#define APT_END_EXTERN_C
Definition: apt.h:38
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
Media Processing Framework Definitions.