windows-nt/Source/XPSP1/NT/termsrv/tsuserex/maksassert.h

44 lines
894 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#ifndef _maksassert_h_
#define _maksassert_h_
/*
* Copyright (c) 1996 Microsoft Corporation
*
* Module Name:
*
* maksassert.h
*
* Abstract:
*
* Defines assert, verify macros.
* remove maksassert.h and maksassert.cpp from project when we get a good assert.
* // maks_todo : remove this code when we get proper ASSERT headers.
*
* Author:
*
* Makarand Patwardhan - March 6, 1998
*
* Comments
* This file is here only because I could not find the right friendly assert includes.
* maks_todo : should be removed later.
*/
#ifdef DBG
void MaksAssert(LPCTSTR exp, LPCTSTR file, int line);
#define ASSERT(exp) (void)( (exp) || (MaksAssert(_T(#exp), _T(__FILE__), __LINE__), 0) )
#define VERIFY(exp) (void)( (exp) || (MaksAssert(_T(#exp), _T(__FILE__), __LINE__), 0) )
#else
#define ASSERT(exp)
#define VERIFY(exp) (exp)
#endif
#endif // _maksassert_h_