Community
Participate
Working Groups
Build Identifier: 3.20.05.69 There are situations where it would be convenient to know if an Assert_isTrue() will fail but perform some work prior to following the normal Assert() exit code. An Assert_query() API would allow OPTIMIZED testing of the Assert expression. Assert_query() would be similarly boil-away-able as Assert_isTrue() in case Asserts are not enabled... Bool Assert_query(expr, AssertID); Example use case: if (Assert_query((BIOS_getThreadType() != BIOS_ThreadTypeTask)), GateMutex_A_badContext) { BIOS_setThreadType(BIOS_ThreadType_Main); Assert_isTrue(FALSE, GateMutex_A_badContext); } Reproducible: Always