Leaked source code of windows server 2003
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.
|
|
//+-------------------------------------------------------------------------
//
// 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
//
INT_PTR 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_
|