[cvs] / xvidcore / src / portab.h Repository:
ViewVC logotype

Diff of /xvidcore/src/portab.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Fri Mar 8 02:44:32 2002 UTC revision 1.3, Sat Mar 16 22:28:37 2002 UTC
# Line 5  Line 5 
5    
6  #include <windows.h>  #include <windows.h>
7    
8    #ifdef _DEBUG
9  #define DEBUG(S) OutputDebugString((S));  #define DEBUG(S) OutputDebugString((S));
10  #define DEBUG1(S,I) { char tmp[100]; wsprintf(tmp, "%s %i\n", (S), (I)); OutputDebugString(tmp); }  #define DEBUG1(S,I) { char tmp[100]; wsprintf(tmp, "%s %i\n", (S), (I)); OutputDebugString(tmp); }
11  #define DEBUG2(X,A,B) { char tmp[100]; wsprintf(tmp, "%s %i %i\n", (X), (A), (B)); OutputDebugString(tmp); }  #define DEBUG2(X,A,B) { char tmp[100]; wsprintf(tmp, "%s %i %i\n", (X), (A), (B)); OutputDebugString(tmp); }
12  #define DEBUG3(X,A,B,C){ char tmp[1000]; wsprintf(tmp,"%s %i %i %i",(X),(A), (B), (C)); OutputDebugString(tmp); }  #define DEBUG3(X,A,B,C){ char tmp[1000]; wsprintf(tmp,"%s %i %i %i",(X),(A), (B), (C)); OutputDebugString(tmp); }
13  #define DEBUG8(X,A,B,C,D,E,F,G,H){ char tmp[1000]; wsprintf(tmp,"%s %i %i %i %i %i %i %i %i",(X),(A),(B),(C),(D),(E),(F),(G),(H)); OutputDebugString(tmp); }  #define DEBUG8(X,A,B,C,D,E,F,G,H){ char tmp[1000]; wsprintf(tmp,"%s %i %i %i %i %i %i %i %i",(X),(A),(B),(C),(D),(E),(F),(G),(H)); OutputDebugString(tmp); }
14    #else
15    #define DEBUG(S)
16    #define DEBUG1(S,I)
17    #define DEBUG2(X,A,B)
18    #define DEBUG3(X,A,B,C)
19    #define DEBUG8(X,A,B,C,D,E,F,G,H)
20    #endif
21    
22    
23  #define int8_t char  #define int8_t char
# Line 45  Line 52 
52    
53  #elif defined(LINUX) || defined(DJGPP)  #elif defined(LINUX) || defined(DJGPP)
54    
55    
56    #ifdef _DEBUG
57    
58  #include <stdio.h>  #include <stdio.h>
59  #define DEBUG_WHERE             stdout  #define DEBUG_WHERE             stdout
60  #define DEBUG(S)        fprintf(DEBUG_WHERE, "%s\n", (S));  #define DEBUG(S)        fprintf(DEBUG_WHERE, "%s\n", (S));
# Line 52  Line 62 
62  #define DEBUG2(S,A,B)   fprintf(DEBUG_WHERE, "%s%i=%i\n", (S), (A), (B))  #define DEBUG2(S,A,B)   fprintf(DEBUG_WHERE, "%s%i=%i\n", (S), (A), (B))
63  #define DEBUG3(S,A,B,C) fprintf(DEBUG_WHERE, "%s %i %x %x\n", (S), (A), (B), (C))  #define DEBUG3(S,A,B,C) fprintf(DEBUG_WHERE, "%s %i %x %x\n", (S), (A), (B), (C))
64  #define DEBUG8(S,A,B,C,D,E,F,G,H)  #define DEBUG8(S,A,B,C,D,E,F,G,H)
65    #else
66    #define DEBUG(S)
67    #define DEBUG1(S,I)
68    #define DEBUG2(X,A,B)
69    #define DEBUG3(X,A,B,C)
70    #define DEBUG8(X,A,B,C,D,E,F,G,H)
71    #endif
72    
73  #if defined(LINUX)  #if defined(LINUX)
74    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4