summaryrefslogtreecommitdiffstats
path: root/private/oleutest/oletest/assert.h
blob: 72be6231a021d2172b8694e7212a8879d5e7b4f5 (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
//+-------------------------------------------------------------------------
//
//  Microsoft Windows
//  Copyright (C) Microsoft Corporation, 1992 - 1993.
//
//  File:	assert.h
//
//  Contents:	Declaraions of assert
//
//  Classes: 	
//
//  History:    dd-mmm-yy Author    Comment
//              09-Dec-94 MikeW     author
//
//--------------------------------------------------------------------------

#ifndef _ASSERT_H_
#define _ASSERT_H_

//
// Misc prototypes
//
BOOL CALLBACK DlgAssertProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
void OleTestAssert(char *, char *, UINT);

//
// Assertion macros
//
#define Assert(x)           assert(x)
#define assert(x)			{if (!(x)) OleTestAssert(#x, __FILE__, __LINE__);}
#define AssertSz(x, exp)	{if (!(x)) OleTestAssert(exp, __FILE__, __LINE__);}

#endif //_ASSERT_H_