| 
    qxLib
    
   | 
 
#include <qx/algo/predicates.h>#include <qx/category.h>#include <qx/logger/logger.h>#include <exception>Go to the source code of this file.
Macros | |
| #define | QX_ASSERT(condition, ...) | 
| Verifies that condition is true.  More... | |
| #define | QX_EXPECT(condition, ...) | 
| Verifies that condition is true.  More... | |
| #define | QX_EXPECT_CONTINUE(condition, ...) | 
| Verifies that condition is true and continues loop if false.  More... | |
| #define | QX_EXPECT_BREAK(condition, ...) | 
| Verifies that condition is true and break loop if false.  More... | |
| #define | QX_EXPECT_RETURN(condition, return_value, ...) | 
| Verifies that condition is true and "return return_value;" if false.  More... | |
| #define | QX_EXPECT_RETURN_VOID(condition, ...) | 
| Verifies that condition is true and "return;" if false.  More... | |
| #define | QX_EXPECT_CO_RETURN(condition, return_value, ...) | 
| Verifies that condition is true and "co_return return_value;" if false.  More... | |
| #define | QX_EXPECT_CO_RETURN_VOID(condition, ...) | 
| Verifies that condition is true and "co_return;" if false.  More... | |
| #define | QX_NO_ENTRY !QX_TEXT("No entry") | 
| Use this as a condition in any macro above to indicate that this part of your code must never be executed.  | |
| #define | QX_NOT_IMPLEMENTED !QX_TEXT("Not implemented") | 
| Use this as a condition in any macro above to indicate that this part of your code is not ready yet.  | |
| #define | QX_PREDICATE_HIT_ONCE() | 
| Predicate to add to a condition in any EXPECT macro. When added, a macro will only hit once.  More... | |
| #define QX_ASSERT | ( | condition, | |
| ... | |||
| ) | 
Verifies that condition is true.
ASSERT macros generate fatal failures and abort the program execution
| condition | - condition to check. if false, assert fails | 
| ... | - "category + format string + format arguments" or "category + format string" or "format string + format arguments" or "format string" or "category" | 
| #define QX_EXPECT | ( | condition, | |
| ... | |||
| ) | 
Verifies that condition is true.
EXPECT macros generate nonfatal failures and allow to continue running
| condition | - condition to check. if false, assert fails | 
| ... | - "category + format string + format arguments" or "category + format string" or "format string + format arguments" or "format string" or "category" | 
| #define QX_EXPECT_BREAK | ( | condition, | |
| ... | |||
| ) | 
Verifies that condition is true and break loop if false.
EXPECT macros generate nonfatal failures and allow to continue running
| condition | - condition to check. if false, assert fails | 
| ... | - "category + format string + format arguments" or "category + format string" or "format string + format arguments" or "format string" or "category" | 
| #define QX_EXPECT_CO_RETURN | ( | condition, | |
| return_value, | |||
| ... | |||
| ) | 
Verifies that condition is true and "co_return return_value;" if false.
EXPECT macros generate nonfatal failures and allow to continue running
| condition | - condition to check. if false, assert fails | 
| return_value | - return value. use empty argument, if return type is void | 
| ... | - "category + format string + format arguments" or "category + format string" or "format string + format arguments" or "format string" or "category" | 
| #define QX_EXPECT_CO_RETURN_VOID | ( | condition, | |
| ... | |||
| ) | 
Verifies that condition is true and "co_return;" if false.
EXPECT macros generate nonfatal failures and allow to continue running
| condition | - condition to check. if false, assert fails | 
| ... | - "category + format string + format arguments" or "category + format string" or "format string + format arguments" or "format string" or "category" | 
| #define QX_EXPECT_CONTINUE | ( | condition, | |
| ... | |||
| ) | 
Verifies that condition is true and continues loop if false.
EXPECT macros generate nonfatal failures and allow to continue running
| condition | - condition to check. if false, assert fails | 
| ... | - "category + format string + format arguments" or "category + format string" or "format string + format arguments" or "format string" or "category" | 
| #define QX_EXPECT_RETURN | ( | condition, | |
| return_value, | |||
| ... | |||
| ) | 
Verifies that condition is true and "return return_value;" if false.
EXPECT macros generate nonfatal failures and allow to continue running
| condition | - condition to check. if false, assert fails | 
| return_value | - return value. use empty argument, if return type is void | 
| ... | - "category + format string + format arguments" or "category + format string" or "format string + format arguments" or "format string" or "category" | 
| #define QX_EXPECT_RETURN_VOID | ( | condition, | |
| ... | |||
| ) | 
Verifies that condition is true and "return;" if false.
EXPECT macros generate nonfatal failures and allow to continue running
| condition | - condition to check. if false, assert fails | 
| ... | - "category + format string + format arguments" or "category + format string" or "format string + format arguments" or "format string" or "category" | 
| #define QX_PREDICATE_HIT_ONCE | ( | ) | 
Predicate to add to a condition in any EXPECT macro. When added, a macro will only hit once.