Added validity check to task handles and fixed some clang-tidy warning in MIJIN_ASSERT.
This commit is contained in:
@@ -56,15 +56,15 @@ if (!static_cast<bool>(condition))
|
||||
/* static bool ignoreAll = false; */ \
|
||||
if (true) /*!ignoreAll */ \
|
||||
{ \
|
||||
mijin::AssertionResult assertion_result__ = mijin::handleAssert(#condition,\
|
||||
msg, MIJIN_FUNC(), __FILE__, __LINE__); \
|
||||
const mijin::AssertionResult assertion_result__ = mijin::handleAssert( \
|
||||
#condition, msg, MIJIN_FUNC(), __FILE__, __LINE__); \
|
||||
switch (assertion_result__) \
|
||||
{ \
|
||||
case mijin::AssertionResult::ABORT: \
|
||||
std::abort(); \
|
||||
break; \
|
||||
case mijin::AssertionResult::IGNORE: \
|
||||
break; \
|
||||
/*break*/; \
|
||||
case mijin::AssertionResult::IGNORE_ALL: \
|
||||
/* ignoreAll = true; */ \
|
||||
break; \
|
||||
|
||||
Reference in New Issue
Block a user