From 6d8e1543547ad5744c11f5b601f4c8f02a6a4aab Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 2 May 2024 13:59:55 -0400 Subject: [PATCH] cwCommonImpl.h : Added cwRuntimeCheck() --- cwCommonImpl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cwCommonImpl.h b/cwCommonImpl.h index 7b59c59..703f2f0 100644 --- a/cwCommonImpl.h +++ b/cwCommonImpl.h @@ -138,8 +138,8 @@ namespace cw { -#define cwAssert(C) while(1){ if(!(C)){ cwLogFatal(kAssertFailRC,"Assert failed on condition:%s",#C ); } break; } - +#define cwAssert(C) while(1){ if(!(C)) { cwLogFatal(kAssertFailRC,"Assert failed on condition:%s",#C ); } break; } +#define cwRuntimeCheck(C) while(1){ if(!(C)) { rc=cwLogError(kAssertFailRC,"Runtime error check failed on condition:%s",#C); goto errLabel; } break; }