You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
659 B
23 lines
659 B
// 1632COM.H
|
|
//
|
|
// Created 19-Jul-96 [JonT]
|
|
|
|
#ifndef _1632COM_H
|
|
#define _1632COM_H
|
|
|
|
// Debug stuff
|
|
#if defined (DEBUG) || defined (_DEBUG)
|
|
#define Assert(x, msg) { if (!(x)) { char szBuf[256]; \
|
|
wsprintf((LPSTR)szBuf, (LPSTR)"DCAP: %s %s(%d)\r\n", (LPSTR)(msg),\
|
|
(LPSTR)__FILE__, __LINE__); \
|
|
OutputDebugString((LPSTR)szBuf); DebugBreak(); } }
|
|
#define DebugSpew(msg) { char szBuf[256]; \
|
|
wsprintf((LPSTR)szBuf, (LPSTR)"DCAP: %s %s(%d)\r\n", (LPSTR)(msg),\
|
|
(LPSTR)__FILE__, __LINE__); \
|
|
OutputDebugString((LPSTR)szBuf); }
|
|
#else
|
|
#define Assert(x, msg)
|
|
#define DebugSpew(msg)
|
|
#endif
|
|
|
|
#endif // #ifndef _1632COM_H
|