From 51f74d4e92f1efb4018c4021e85081e612407db2 Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Tue, 5 Sep 2023 18:52:42 +0200 Subject: [PATCH] ASSERT/ASSERT_TS: Add more output in recursive assertion case The error should be really rare, but in case it bites us, it helps to have some more info. We also do use the direct functions are we want to avoid any potential for more asssertions. --- Packages/MIES/MIES_Utilities.ipf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Packages/MIES/MIES_Utilities.ipf b/Packages/MIES/MIES_Utilities.ipf index 7111ca52d0..dfa145bc89 100644 --- a/Packages/MIES/MIES_Utilities.ipf +++ b/Packages/MIES/MIES_Utilities.ipf @@ -114,6 +114,8 @@ Function ASSERT(variable var, string errorMsg, [variable extendedOutput]) // Happens e.g. when ASSERT is encounterd in cleanup functions print "Double Assertion Fail encountered !" + print errorMsg + print GetRTStackInfo(3) if(doCallDebugger) ControlWindowToFront() @@ -239,6 +241,8 @@ threadsafe Function ASSERT_TS(variable var, string errorMsg, [variable extendedO if(IsFunctionCalledRecursively()) print "Double threadsafe assertion Fail encountered !" + print errorMsg + print GetRTStackInfo(3) AbortOnValue 1, 1 endif