blob: ca531d9f1882ffd994853cb94abe339647bb45fc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/****************************** Module Header ******************************\
* Module Name: CMACS.H
*
* This module contains common macros used by C routines.
*
* Created: 9-Feb-1989
*
* Copyright (c) 1985 - 1989 Microsoft Corporation
*
* History:
* Created by Raor
*
\***************************************************************************/
#define _WINDOWS
#define DLL_USE
#define INTERNAL PASCAL NEAR
#define FARINTERNAL PASCAL FAR
#ifdef FIREWALLS
extern short ole_flags;
#define DEBUG_PUTS 0x01
#define DEBUG_DEBUG_OUT 0x02
#define DEBUG_MESSAGEBOX 0x04
extern char szDebugBuffer[];
#define DEBUG_OUT(parm1,parm2){\
if(ole_flags & DEBUG_DEBUG_OUT){\
wsprintf(szDebugBuffer,parm1,parm2);\
OutputDebugString(szDebugBuffer);\
OutputDebugString ("^^^ ");\
}\
}
#define ASSERT(x,y) {\
if (!(x)) { \
wsprintf (szDebugBuffer, "Assert Failure file %s, line %d\r\n ", \
(LPSTR) __FILE__, __LINE__);\
OutputDebugString (szDebugBuffer);\
OutputDebugString ((LPSTR) (y));\
OutputDebugString ("@@@ ");\
} \
}
#define Puts(msg) {\
if(ole_flags & DEBUG_PUTS){\
OutputDebugString ((LPSTR)(msg));\
OutputDebugString ("** ");\
}\
}
#else
#define DEBUG_OUT(err, val) ;
#define ASSERT(cond, msg)
#define Puts(msg)
#endif /* FIREWALLS */
|