#1260 Added assert that will display message in release (in addition to debug)

This commit is contained in:
Magne Sjaastad 2017-03-07 15:45:34 +01:00
parent 914b1fcab6
commit a16a0a3bb5
2 changed files with 16 additions and 0 deletions

View File

@ -11,6 +11,7 @@ include_directories (
set( PROJECT_FILES
cafAssert.h
cafAppEnum.h
cafClassTypeName.h
cafPdmBase.h

View 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)