ecto
Namespaces | Macros | Functions
log.hpp File Reference
#include <ecto/config.hpp>
#include <ecto/util.hpp>
#include <ecto/test.hpp>
#include <stdint.h>
Include dependency graph for log.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ecto
 

Macros

#define ECTO_ASSERT(X, msg)
 
#define ECTO_LOG_DEBUG(fmg, args)   do { ECTO_RANDOM_DELAY(); } while (false)
 
#define ECTO_START()   do { ECTO_RANDOM_DELAY(); } while(false)
 
#define ECTO_FINISH()   do { ECTO_RANDOM_DELAY(); } while(false)
 
#define ECTO_TRACE_EXCEPTION(E)
 

Functions

ECTO_EXPORT void ecto::log (const char *, const char *, unsigned line, const std::string &msg)
 
ECTO_EXPORT void ecto::assert_failed (const char *, const char *file, unsigned line, const char *cond, const char *msg)
 
bool ecto::logging_on ()
 

Macro Definition Documentation

#define ECTO_ASSERT (   X,
  msg 
)
Value:
do { \
if (X) ; else ecto::assert_failed(__PRETTY_FUNCTION__, __FILE__, __LINE__, #X, msg); \
} while(false)
#define ECTO_RANDOM_DELAY()
Definition: test.hpp:43
ECTO_EXPORT void assert_failed(const char *, const char *file, unsigned line, const char *cond, const char *msg)
#define ECTO_FINISH ( )    do { ECTO_RANDOM_DELAY(); } while(false)
#define ECTO_LOG_DEBUG (   fmg,
  args 
)    do { ECTO_RANDOM_DELAY(); } while (false)
#define ECTO_START ( )    do { ECTO_RANDOM_DELAY(); } while(false)
#define ECTO_TRACE_EXCEPTION (   E)