check_condition.h
Go to the documentation of this file.
1 
40 #ifndef ARBITRARY_PRECISION_CALCULATION_CHECK_CONDITION_H_
41 #define ARBITRARY_PRECISION_CALCULATION_CHECK_CONDITION_H_
42 
43 #include <string>
44 
46 
53 #define AssertCondition(EX, MSG) (void)((EX) || (__AssertCondition (#EX, __FILE__, __func__, __LINE__, MSG),0))
54 
64 void __AssertCondition(const char *argument, const char * file, const char * function_name, int line, std::string message);
65 
66 } // namespace arbitraryprecisioncalculation
67 
68 #endif /* ARBITRARY_PRECISION_CALCULATION_CHECK_CONDITION_H_ */
void __AssertCondition(const char *argument, const char *file, const char *function_name, int line, std::string message)
Prints the given information to stderr and let the program terminate with exit code 1...
base namespace for arbitrary precision calculation.
Definition: check_condition.h:45