mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 07:03:25 -06:00
#1260 Added assert that will display message in release (in addition to debug)
This commit is contained in:
parent
914b1fcab6
commit
a16a0a3bb5
@ -11,6 +11,7 @@ include_directories (
|
||||
|
||||
set( PROJECT_FILES
|
||||
|
||||
cafAssert.h
|
||||
cafAppEnum.h
|
||||
cafClassTypeName.h
|
||||
cafPdmBase.h
|
||||
|
15
Fwk/AppFwk/cafProjectDataModel/cafPdmCore/cafAssert.h
Normal file
15
Fwk/AppFwk/cafProjectDataModel/cafPdmCore/cafAssert.h
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef NDEBUG
|
||||
#include <assert.h>
|
||||
#define NDEBUG
|
||||
#else
|
||||
#include <assert.h>
|
||||
#endif
|
||||
|
||||
#define CAF_ASSERT(expr) assert(expr)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user