check_condition.h File Reference

This file includes a possibility to check conditions which should be true. (similar to assertions). More...

#include <string>
Include dependency graph for check_condition.h:

Go to the source code of this file.

Namespaces

 highprecisionpso
 base namespace for this project.
 

Macros

#define AssertCondition(EX, MSG)   (void)((EX) || (__AssertCondition (#EX, __FILE__, __func__, __LINE__, MSG),0))
 If EX is evaluated to false then it prints the given information to stderr and let the program terminate with exit code 1. More...
 

Functions

void highprecisionpso::__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. More...
 

Detailed Description

This file includes a possibility to check conditions which should be true. (similar to assertions).

Author
Alexander Raß (alexa.nosp@m.nder.nosp@m..rass.nosp@m.@fau.nosp@m..de)
Date
September, 2015

Macro Definition Documentation

#define AssertCondition (   EX,
  MSG 
)    (void)((EX) || (__AssertCondition (#EX, __FILE__, __func__, __LINE__, MSG),0))

If EX is evaluated to false then it prints the given information to stderr and let the program terminate with exit code 1.

Parameters
EXThe expression which should be checked.
MSGA special message which will be displayed if EX is not true.