UniMRCP  1.3.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mpf_trace.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2014 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  * $Id: apt_log.h 1792 2011-01-10 21:08:52Z achaloyan $
17  */
18 
19 #ifndef MPF_TRACE_H
20 #define MPF_TRACE_H
21 
22 /**
23  * @file mpf_trace.h
24  * @brief MPF Tracer
25  */
26 
27 #include <stdio.h>
28 #include "mpf.h"
29 
31 
32 #ifdef WIN32
33 static void mpf_debug_output_trace(const char* format, ...)
34 {
35  char buf[1024];
36  va_list arg;
37  va_start(arg, format);
38  apr_vsnprintf(buf, sizeof(buf), format, arg);
39  va_end(arg);
40 
41  OutputDebugStringA(buf);
42 }
43 #else
44 static APR_INLINE void mpf_debug_output_trace() {}
45 #endif
46 
47 static APR_INLINE void mpf_null_trace() {}
48 
50 
51 #endif /* MPF_TRACE_H */