awips2/nativeLib/rary.ohd.ofs/inc/ndfd2rfs_inc/myassert.h.unneeded
root 06a8b51d6d Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

32 lines
718 B
Text

/*****************************************************************************
* 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 "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