JX Application Framework
Loading...
Searching...
No Matches
Macros | Functions
jAssert.h File Reference
#include "jNew.h"
#include <boost/current_function.hpp>
Include dependency graph for jAssert.h:

Macros

#define assert(x)   ((void) ((x) || JAssert(#x, __FILE__, __LINE__, "", BOOST_CURRENT_FUNCTION)))
 
#define assert_msg(x, msg)   ((void) ((x) || JAssert(#x, __FILE__, __LINE__, msg, BOOST_CURRENT_FUNCTION)))
 
#define assert_ok(x)   ((void) ((x).OK() || JAssert((x).GetMessage().GetBytes(), __FILE__, __LINE__, "", BOOST_CURRENT_FUNCTION)))
 

Functions

int JAssert (const char *, const char *, const int, const char *message, const char *function)
 

Macro Definition Documentation

◆ assert

#define assert (   x)    ((void) ((x) || JAssert(#x, __FILE__, __LINE__, "", BOOST_CURRENT_FUNCTION)))

◆ assert_msg

#define assert_msg (   x,
  msg 
)    ((void) ((x) || JAssert(#x, __FILE__, __LINE__, msg, BOOST_CURRENT_FUNCTION)))

◆ assert_ok

#define assert_ok (   x)    ((void) ((x).OK() || JAssert((x).GetMessage().GetBytes(), __FILE__, __LINE__, "", BOOST_CURRENT_FUNCTION)))

Function Documentation

◆ JAssert()

int JAssert ( const char *  expr,
const char *  file,
const int  line,
const char *  message,
const char *  function 
)