From e12d7ff09866246c0b8732ab378f42dec7d3d954 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Thu, 27 Aug 2026 15:32:58 -0700 Subject: [PATCH] add back control checks prior to error code checks --- intercept/src/intercept.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/intercept/src/intercept.h b/intercept/src/intercept.h index 1a9a594f..bad47f08 100644 --- a/intercept/src/intercept.h +++ b/intercept/src/intercept.h @@ -2253,7 +2253,10 @@ inline CObjectTracker& CLIntercept::objectTracker() } #define CHECK_ERROR( errorCode ) \ - if( errorCode != CL_SUCCESS ) \ + if( ( pIntercept->config().ErrorLogging || \ + pIntercept->config().ErrorAssert || \ + pIntercept->config().NoErrors ) && \ + ( errorCode != CL_SUCCESS ) ) \ { \ if( pIntercept->config().ErrorLogging ) \ { \