Former-commit-id:a02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]] Former-commit-id:06a8b51d6d
Former-commit-id:3360eb6c5f
32 lines
729 B
C
32 lines
729 B
C
/*****************************************************************************
|
|
* myassert.h
|
|
*
|
|
* DESCRIPTION
|
|
* This file contains the code to handle assert statements. There is no
|
|
* actual code unless DEBUG is defined.
|
|
*
|
|
* HISTORY
|
|
* 12/2003 Arthur Taylor (MDL / RSIS): Created.
|
|
*
|
|
* NOTES
|
|
*****************************************************************************
|
|
*/
|
|
#ifndef MYASSERT_H
|
|
#define MYASSERT_H
|
|
|
|
#ifdef MEMWATCH
|
|
#include "degrib_inc/memwatch.h"
|
|
#endif
|
|
|
|
#ifdef DEBUG
|
|
void _myAssert (const char *file, int lineNum);
|
|
#define myAssert(f) \
|
|
if (f) \
|
|
{} \
|
|
else \
|
|
_myAssert (__FILE__, __LINE__)
|
|
#else
|
|
#define myAssert(f)
|
|
#endif
|
|
|
|
#endif
|