ensure.h File Reference

(r1785/r751)

Go to the source code of this file.

Defines

#define ENSURE(expr, description)   ((void)0)

Functions

void CCAPI EnsureFailedLine (const TCHAR *AssertDescription, const char *lpszFileName, INT32 nLine)
 This macro is similar to the ASSERT macro, the only difference being that a description is provided of why the failure occured. The symbol _ENSURES is defined if the ENSURE macro expands to something, else is undefined if the ENSURE macro has no effect. IMPORTANT NOTE: ENSURE is obsolete. Use ERROR2xx or ERROR3xx macros instead.


Define Documentation

#define ENSURE expr,
description   )     ((void)0)
 

Definition at line 140 of file ensure.h.


Function Documentation

void CCAPI EnsureFailedLine const TCHAR AssertDescription,
const char *  lpszFileName,
INT32  nLine
 

This macro is similar to the ASSERT macro, the only difference being that a description is provided of why the failure occured. The symbol _ENSURES is defined if the ENSURE macro expands to something, else is undefined if the ENSURE macro has no effect. IMPORTANT NOTE: ENSURE is obsolete. Use ERROR2xx or ERROR3xx macros instead.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
3/5/93
Parameters:
AssertDescription,: Reason for failure description [INPUTS] lpszFileName: Filename of file that caused failure nLine: Line number that caused failure
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 372 of file ensure.cpp.

00373 {
00374     InternalAssert( AssertDescription, lpszFileName, nLine, TRUE );
00375 }


Generated on Sat Nov 10 03:49:30 2007 for Camelot by  doxygen 1.4.4