![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <Assure.hpp>

Static Public Member Functions | |
| template<typename TYPE> | |
| static void | expression (const std::string &expression, const std::string &fileName, int line, const std::string &functionName, const std::string &reason) |
| Used by assure(bool anExpression, string reason). | |
Static Public Attributes | |
| static bool | useSIGTRAP = false |
| If enabled, cerr and SIGTRAP will be used instead of throwing an error. | |
Classes | |
| class | Exception |
| Thrown by assure. More... | |
For internal use only.
This is not a namespace to not clutter the top level namespace with it.
Definition at line 206 of file Assure.hpp.
| static void wns::Assure::expression | ( | const std::string & | expression, | |
| const std::string & | fileName, | |||
| int | line, | |||
| const std::string & | functionName, | |||
| const std::string & | reason | |||
| ) | [inline, static] |
| wns::Assure::Exception | Indicates a failed assertion. This is more verbose than assert() as you can provide any information you like as message why the assure failed. |
Definition at line 248 of file Assure.hpp.
bool Assure::useSIGTRAP = false [static] |
This allows to stop the debugger on an exception.
Definition at line 215 of file Assure.hpp.
1.5.5