dynLattice
Loading...
Searching...
No Matches
Macros
testing.h File Reference

several compiler macros for faster testing of variables More...

Include dependency graph for testing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define REPORT(key)
 
#define SUBHEADER2(a, b)
 
#define TEST_CONTEXT(key)
 
#define TEST_NO_CONTEXT(key)
 
#define TEST_PRINTER(key)
 
#define TEST_STD(key)
 
#define STOP_DEBUG    throw jem::RuntimeException(__FUNCTION__, "I want to end here :)");
 
#define WARN_ASSERT2(expr, msg)
 
#define NOT_IMPLEMENTED
 

Detailed Description

Author
Til Gärtner

Macro Definition Documentation

◆ NOT_IMPLEMENTED

#define NOT_IMPLEMENTED
Value:
throw jem::RuntimeException(__PRETTY_FUNCTION__, \
"Function not implemented!");

◆ REPORT

#define REPORT (   key)
Value:
jem::System::debug(myName_) \
<< "\n-=-=-=-=-=-=-=-=-=-=- " << #key << " :: " << key \
<< " -=-=-=-=-=-=-=-=-=-=-\n";

◆ STOP_DEBUG

#define STOP_DEBUG    throw jem::RuntimeException(__FUNCTION__, "I want to end here :)");

◆ SUBHEADER2

#define SUBHEADER2 (   a,
  b 
)
Value:
jem::System::debug(myName_) \
<< "-=-=-=-=- " << #a << " :: " << a << " -=-=-=-=- " << #b \
<< " :: " << b << " -=-=-=-=-\n";

◆ TEST_CONTEXT

#define TEST_CONTEXT (   key)
Value:
jem::System::debug(myName_) \
<< "> > > " << #key << " in \"" << getContext() \
<< "\" function \"" << __FUNCTION__ << "\" ::\n" \
<< key << "\n";

◆ TEST_NO_CONTEXT

#define TEST_NO_CONTEXT (   key)
Value:
jem::System::debug(__FUNCTION__) << "> > > " << #key << " in \"" \
<< __PRETTY_FUNCTION__ << "\" ::\n" \
<< key << "\n";

◆ TEST_PRINTER

#define TEST_PRINTER (   key)
Value:
key.printTo(jive::util::Printer::get()); \
jive::util::Printer::flush();

◆ TEST_STD

#define TEST_STD (   key)
Value:
std::clog << "> > > " << #key << " ::\n" \
<< key << "\n";

◆ WARN_ASSERT2

#define WARN_ASSERT2 (   expr,
  msg 
)
Value:
if (!(expr)) \
jem::System::warn() << msg << "\n";