RCFProto

- Main Page
- Classes
- Files

- File List

All Classes Functions Typedefs
Unix/OutputDebugString.hpp
1
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2013, Delta V Software. All rights reserved.
6 // http://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF
12 // under GPL terms.
13 //
14 // Version: 2.0
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18
19 #ifndef INCLUDE_UTIL_PLATFORM_OS_UNIX_OUTPUTDEBUGSTRING_HPP
20 #define INCLUDE_UTIL_PLATFORM_OS_UNIX_OUTPUTDEBUGSTRING_HPP
21
22 #include <stdio.h>
23
24 namespace Platform {
25
26 namespace OS {
27
28 inline void OutputDebugString(const char *sz)
29 {
30
31 #ifdef OUTPUTDEBUGSTRING_TO_STDERR
32 fprintf(stderr, "%s", sz);
33 #endif
34
35 #ifdef OUTPUTDEBUGSTRING_TO_STDOUT
36 fprintf(stdout, "%s", sz);
37 #endif
38
39 #ifdef OUTPUTDEBUGSTRING_TO_FILE
40 static FILE *file = fopen( "OutputDebugString.txt", "w" );
41 fprintf(file, "%s", sz);
42 #endif
43
44 }
45
46 }
47
48 }
49
50 #endif // ! INCLUDE_UTIL_PLATFORM_OS_UNIX_OUTPUTDEBUGSTRING_HPP