Files Classes Functions Hierarchy
#include <cassert>#include <string>
Go to the source code of this file.
Defines | |
| #define | SHOW(x) #x << '=' << (x) |
| Display the name and value. | |
| #define | SHOW2(x) ((x), #x ) |
| #define | SHOW3(x) #x << "=*" << (x) << "*" |
| Look at exact pattern. | |
| #define | endln "\n" |
| Get rid of flushing which is associated with a stream and very complex, in my opinion endl is a very bad default in the language. | |
| #define | asserteval(xarg) xarg; |
| The argument is evaluated in both debug and release. | |
| #define | assertreturnOS(xarg) assert(xarg); |
| Operating systems have 0 as success, let 1 be unsuccessful. | |
| #define | assertreturnfalse(xarg) assert(xarg); |
| If in release (not debug mode) and test fails return false. | |
| #define | assertreturnfalseN(xarg) assertreturnfalse( ! (xarg) ) |
| Negate the argument. | |
| #define | assertreturn(xarg) assert(xarg); |
| Assert(debug) or return(release) when the assertion fails. | |
| #define | assertreturnT(xarg, failedreturnobj) assert(xarg); |
| On failure user object returned. | |
Typedefs | |
| typedef bool const | boolc |
| typedef char const | charc |
| typedef double const | doublec |
| typedef float const | floatc |
| typedef int const | intc |
| typedef string const | stringc |
| typedef unsigned char | uchar |
| typedef unsigned char const | ucharc |
| typedef unsigned int | uint |
| typedef unsigned int const | uintc |
| typedef unsigned long int | ulongint |
| typedef unsigned long int const | ulongintc |
| typedef unsigned short int | ushortint |
| typedef unsigned short int const | ushortintc |
| #define asserteval | ( | xarg | ) | xarg; |
The argument is evaluated in both debug and release.
Definition at line 35 of file typedefs.h.
Referenced by pointsgraph::draw(), gobjglBegin::gobjglBegin(), gobjglColor3f::gobjglColor3f(), gobjglDisable::gobjglDisable(), gobjglPushAttrib::gobjglPushAttrib(), gobjglVertex3f::gobjglVertex3f(), and triangle3D< PT, PD >::orthocenteri().
| #define assertreturn | ( | xarg | ) | assert(xarg); |
Assert(debug) or return(release) when the assertion fails.
Definition at line 77 of file typedefs.h.
Referenced by bsptree001::currentsphere(), menusystem::drawparentsnested(), maze005::keyboard01(), mazematrixD3< T >::link(), menusystem::read(), pathlinesegvec::read(), bsptree001::special(), mazematrixD3test::test01(), mazematrixD3test::test02(), bsptree001::update(), and pathlinesegvec::write().
| #define assertreturnfalse | ( | xarg | ) | assert(xarg); |
If in release (not debug mode) and test fails return false.
Definition at line 62 of file typedefs.h.
Referenced by randomgenerator::domain(), tokenizerlocal::erasetag(), tokenizer::find(), compilationfile::includesadd(), tokenizerlocal::operator!(), mazegameD2solver01::pathcontains(), tokenizerlocal::readtag(), mazematrixD3< T >::valid(), mazegameD2state01::valid(), and tokenizerlocal::writetag().
| #define assertreturnfalseN | ( | xarg | ) | assertreturnfalse( ! (xarg) ) |
Negate the argument.
Definition at line 73 of file typedefs.h.
Referenced by randomgenerator::domain().
| #define assertreturnOS | ( | xarg | ) | assert(xarg); |
Operating systems have 0 as success, let 1 be unsuccessful.
Definition at line 49 of file typedefs.h.
Referenced by windowscaleD2test::test001(), vistest::test01(), desystest::test03(), pathlinesegtest::test03(), desystest::test04(), commandlinetest::test05(), simplexD1tessindexedtest::unittest01(), misclib_testcode::tokenizertest::unittest01(), stringserializationtest::unittest01(), misclib_testcode::stringconverttest::unittest01(), linetest::unittest01(), linechoppedtest::unittest01(), halfspaceD2test::unittest01(), systemcallstest::unittest01(), mkerrorstest::unittest01(), boxOBBhalfspaceD2test::unittest01(), treeindexedD2test::unittest01(), pathlinesegtest::unittest01(), misclib_testcode::tokenizertest::unittest02(), stringtagparsertest::unittest02(), linechoppedtest::unittest02(), treeindexedD2test::unittest02(), misclib_testcode::tokenizertest::unittest03(), misclib_testcode::tokenizertest::unittest04(), and treeindexedD2test::unittest04().
| #define assertreturnT | ( | xarg, | |||
| failedreturnobj | ) | assert(xarg); |
On failure user object returned.
Definition at line 89 of file typedefs.h.
Referenced by stringtagparsertest::unittest01().
| #define endln "\n" |
Get rid of flushing which is associated with a stream and very complex, in my opinion endl is a very bad default in the language.
Definition at line 30 of file typedefs.h.
Referenced by projunittests::report(), projunittest::report(), misclib_testcode::tokenizertest::unittest01(), misclib_testcode::tokenizertest::unittest02(), stringtagparsertest::unittest02(), and misclib_testcode::tokenizertest::unittest03().
| #define SHOW | ( | x | ) | #x << '=' << (x) |
| #define SHOW2 | ( | x | ) | ((x), #x ) |
| #define SHOW3 | ( | x | ) | #x << "=*" << (x) << "*" |
Look at exact pattern.
Definition at line 27 of file typedefs.h.
Referenced by compilationfile::includesvalid(), cireporttest::test01(), mkerrorstest::unittest01(), stringtagparsertest::unittest02(), and misclib_testcode::tokenizertest::unittest04().
Definition at line 8 of file typedefs.h.
| typedef char const charc |
Definition at line 9 of file typedefs.h.
| typedef double const doublec |
Definition at line 10 of file typedefs.h.
| typedef float const floatc |
Definition at line 11 of file typedefs.h.
| typedef int const intc |
Definition at line 12 of file typedefs.h.
| typedef string const stringc |
Definition at line 13 of file typedefs.h.
| typedef unsigned char uchar |
Definition at line 14 of file typedefs.h.
| typedef unsigned char const ucharc |
Definition at line 15 of file typedefs.h.
| typedef unsigned int uint |
Definition at line 16 of file typedefs.h.
| typedef unsigned int const uintc |
Definition at line 17 of file typedefs.h.
| typedef unsigned long int ulongint |
Definition at line 18 of file typedefs.h.
| typedef unsigned long int const ulongintc |
Definition at line 19 of file typedefs.h.
| typedef unsigned short int ushortint |
Definition at line 20 of file typedefs.h.
| typedef unsigned short int const ushortintc |
Definition at line 21 of file typedefs.h.
1.5.8