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 |