ALBA
Macros
albaDbg.h File Reference
#include <assert.h>
Include dependency graph for albaDbg.h:

Go to the source code of this file.

Macros

#define _DBG_RPT(msg)
 
#define _DBG_BREAK(msg)   assert(false)
 
#define _ASSERT_EXPR(expr, msg)   assert(expr)
 
#define _ASSERT(expr)   _ASSERT_EXPR((expr), #expr)
 
#define _ASSERTE(expr)   _ASSERT_EXPR((expr), #expr)
 
#define _ASSERT_EXPR_RPT(expr, msg)   ((void)0)
 
#define _ASSERT_RTP(expr)   ((void)0)
 
#define _ASSERT_EXPR_CMD(expr, msg, command)   ((void)0)
 
#define _ASSERT_CMD(expr, command)   ((void)0)
 
#define _ASSERT_EXPR_CMD_RPT(expr, msg, command)   ((void)0)
 
#define _ASSERT_CMD_RPT(expr, command)   ((void)0)
 
#define _ASSERT_EXPR_RET(expr, msg)   ((void)0)
 
#define _ASSERT_RET(expr)   ((void)0)
 
#define _ASSERT_EXPR_RPT_RET(expr, msg)   ((void)0)
 
#define _ASSERT_PRT_RET(expr)   ((void)0)
 
#define _ASSERT_EXPR_RETVAL(expr, msg, retval)   ((void)0)
 
#define _ASSERT_RETVAL(expr, retval)   ((void)0)
 
#define _ASSERT_EXPR_RPT_RETVAL(expr, msg, retval)   ((void)0)
 
#define _ASSERT_PRT_RETVAL(expr, retval)   ((void)0)
 
#define _ASSERT_EXPR_THROW(expr, msg, exc)   ((void)0)
 
#define _ASSERT_THROW(expr, exc)   ((void)0)
 
#define _ASSERT_EXPR_RPT_THROW(expr, msg, exc)   ((void)0)
 
#define _ASSERT_PRT_THROW(expr, exc)   _ASSERT_EXPR_CMD_RPT(expr, #expr, throw (exc))
 
#define _VERIFY_EXPR(expr, msg)   expr
 
#define _VERIFY(expr)   expr
 
#define _VERIFY_EXPR_RPT(expr, msg)   expr
 
#define _VERIFY_RTP(expr)   expr
 
#define _VERIFY_EXPR_CMD(expr, msg, command)   if (!(expr)) { command; }
 
#define _VERIFY_CMD(expr, command)   if (!(expr)) { command; }
 
#define _VERIFY_EXPR_CMD_RPT(expr, msg, command)   if (!(expr)) { command; }
 
#define _VERIFY_CMD_RPT(expr, command)   if (!(expr)) { command; }
 
#define _VERIFY_EXPR_RET(expr, msg)   _VERIFY_CMD(expr, return)
 
#define _VERIFY_RET(expr)   _VERIFY_CMD(expr, return)
 
#define _VERIFY_EXPR_RPT_RET(expr, msg)   _VERIFY_CMD(expr, return)
 
#define _VERIFY_PRT_RET(expr)   _VERIFY_CMD(expr, return)
 
#define _VERIFY_EXPR_RETVAL(expr, msg, retval)   _VERIFY_CMD(expr, return (retval))
 
#define _VERIFY_RETVAL(expr, retval)   _VERIFY_CMD(expr, return (retval))
 
#define _VERIFY_EXPR_RPT_RETVAL(expr, msg, retval)   _VERIFY_CMD(expr, return (retval))
 
#define _VERIFY_PRT_RETVAL(expr, retval)   _VERIFY_CMD(expr, return (retval))
 
#define _VERIFY_EXPR_THROW(expr, msg, exc)   _VERIFY_CMD(expr, throw (exc))
 
#define _VERIFY_THROW(expr, exc)   _VERIFY_CMD(expr, throw (exc))
 
#define _VERIFY_EXPR_RPT_THROW(expr, msg, exc)   _VERIFY_CMD(expr, throw (exc))
 
#define _VERIFY_PRT_THROW(expr, exc)   _VERIFY_CMD(expr, throw (exc))
 

Macro Definition Documentation

◆ _DBG_RPT

#define _DBG_RPT (   msg)
Value:
fprintf(stderr, "%s at %s(%d)\n", \
(msg == NULL ? "Assert " : msg), __FILE__, __LINE__)

Definition at line 50 of file albaDbg.h.

◆ _DBG_BREAK

#define _DBG_BREAK (   msg)    assert(false)

Definition at line 52 of file albaDbg.h.

◆ _ASSERT_EXPR

#define _ASSERT_EXPR (   expr,
  msg 
)    assert(expr)

Definition at line 55 of file albaDbg.h.

◆ _ASSERT

#define _ASSERT (   expr)    _ASSERT_EXPR((expr), #expr)

Definition at line 59 of file albaDbg.h.

◆ _ASSERTE

#define _ASSERTE (   expr)    _ASSERT_EXPR((expr), #expr)

Definition at line 63 of file albaDbg.h.

◆ _ASSERT_EXPR_RPT

#define _ASSERT_EXPR_RPT (   expr,
  msg 
)    ((void)0)

Definition at line 122 of file albaDbg.h.

◆ _ASSERT_RTP

#define _ASSERT_RTP (   expr)    ((void)0)

Definition at line 123 of file albaDbg.h.

◆ _ASSERT_EXPR_CMD

#define _ASSERT_EXPR_CMD (   expr,
  msg,
  command 
)    ((void)0)

Definition at line 125 of file albaDbg.h.

◆ _ASSERT_CMD

#define _ASSERT_CMD (   expr,
  command 
)    ((void)0)

Definition at line 126 of file albaDbg.h.

◆ _ASSERT_EXPR_CMD_RPT

#define _ASSERT_EXPR_CMD_RPT (   expr,
  msg,
  command 
)    ((void)0)

Definition at line 127 of file albaDbg.h.

◆ _ASSERT_CMD_RPT

#define _ASSERT_CMD_RPT (   expr,
  command 
)    ((void)0)

Definition at line 128 of file albaDbg.h.

◆ _ASSERT_EXPR_RET

#define _ASSERT_EXPR_RET (   expr,
  msg 
)    ((void)0)

Definition at line 130 of file albaDbg.h.

◆ _ASSERT_RET

#define _ASSERT_RET (   expr)    ((void)0)

Definition at line 131 of file albaDbg.h.

◆ _ASSERT_EXPR_RPT_RET

#define _ASSERT_EXPR_RPT_RET (   expr,
  msg 
)    ((void)0)

Definition at line 132 of file albaDbg.h.

◆ _ASSERT_PRT_RET

#define _ASSERT_PRT_RET (   expr)    ((void)0)

Definition at line 133 of file albaDbg.h.

◆ _ASSERT_EXPR_RETVAL

#define _ASSERT_EXPR_RETVAL (   expr,
  msg,
  retval 
)    ((void)0)

Definition at line 135 of file albaDbg.h.

◆ _ASSERT_RETVAL

#define _ASSERT_RETVAL (   expr,
  retval 
)    ((void)0)

Definition at line 136 of file albaDbg.h.

◆ _ASSERT_EXPR_RPT_RETVAL

#define _ASSERT_EXPR_RPT_RETVAL (   expr,
  msg,
  retval 
)    ((void)0)

Definition at line 137 of file albaDbg.h.

◆ _ASSERT_PRT_RETVAL

#define _ASSERT_PRT_RETVAL (   expr,
  retval 
)    ((void)0)

Definition at line 138 of file albaDbg.h.

◆ _ASSERT_EXPR_THROW

#define _ASSERT_EXPR_THROW (   expr,
  msg,
  exc 
)    ((void)0)

Definition at line 140 of file albaDbg.h.

◆ _ASSERT_THROW

#define _ASSERT_THROW (   expr,
  exc 
)    ((void)0)

Definition at line 141 of file albaDbg.h.

◆ _ASSERT_EXPR_RPT_THROW

#define _ASSERT_EXPR_RPT_THROW (   expr,
  msg,
  exc 
)    ((void)0)

Definition at line 142 of file albaDbg.h.

◆ _ASSERT_PRT_THROW

#define _ASSERT_PRT_THROW (   expr,
  exc 
)    _ASSERT_EXPR_CMD_RPT(expr, #expr, throw (exc))

Definition at line 143 of file albaDbg.h.

◆ _VERIFY_EXPR

#define _VERIFY_EXPR (   expr,
  msg 
)    expr

Definition at line 145 of file albaDbg.h.

◆ _VERIFY

#define _VERIFY (   expr)    expr

Definition at line 146 of file albaDbg.h.

◆ _VERIFY_EXPR_RPT

#define _VERIFY_EXPR_RPT (   expr,
  msg 
)    expr

Definition at line 148 of file albaDbg.h.

◆ _VERIFY_RTP

#define _VERIFY_RTP (   expr)    expr

Definition at line 149 of file albaDbg.h.

◆ _VERIFY_EXPR_CMD

#define _VERIFY_EXPR_CMD (   expr,
  msg,
  command 
)    if (!(expr)) { command; }

Definition at line 151 of file albaDbg.h.

◆ _VERIFY_CMD

#define _VERIFY_CMD (   expr,
  command 
)    if (!(expr)) { command; }

Definition at line 152 of file albaDbg.h.

◆ _VERIFY_EXPR_CMD_RPT

#define _VERIFY_EXPR_CMD_RPT (   expr,
  msg,
  command 
)    if (!(expr)) { command; }

Definition at line 153 of file albaDbg.h.

◆ _VERIFY_CMD_RPT

#define _VERIFY_CMD_RPT (   expr,
  command 
)    if (!(expr)) { command; }

Definition at line 154 of file albaDbg.h.

◆ _VERIFY_EXPR_RET

#define _VERIFY_EXPR_RET (   expr,
  msg 
)    _VERIFY_CMD(expr, return)

Definition at line 156 of file albaDbg.h.

◆ _VERIFY_RET

#define _VERIFY_RET (   expr)    _VERIFY_CMD(expr, return)

Definition at line 157 of file albaDbg.h.

◆ _VERIFY_EXPR_RPT_RET

#define _VERIFY_EXPR_RPT_RET (   expr,
  msg 
)    _VERIFY_CMD(expr, return)

Definition at line 158 of file albaDbg.h.

◆ _VERIFY_PRT_RET

#define _VERIFY_PRT_RET (   expr)    _VERIFY_CMD(expr, return)

Definition at line 159 of file albaDbg.h.

◆ _VERIFY_EXPR_RETVAL

#define _VERIFY_EXPR_RETVAL (   expr,
  msg,
  retval 
)    _VERIFY_CMD(expr, return (retval))

Definition at line 161 of file albaDbg.h.

◆ _VERIFY_RETVAL

#define _VERIFY_RETVAL (   expr,
  retval 
)    _VERIFY_CMD(expr, return (retval))

Definition at line 162 of file albaDbg.h.

◆ _VERIFY_EXPR_RPT_RETVAL

#define _VERIFY_EXPR_RPT_RETVAL (   expr,
  msg,
  retval 
)    _VERIFY_CMD(expr, return (retval))

Definition at line 163 of file albaDbg.h.

◆ _VERIFY_PRT_RETVAL

#define _VERIFY_PRT_RETVAL (   expr,
  retval 
)    _VERIFY_CMD(expr, return (retval))

Definition at line 164 of file albaDbg.h.

◆ _VERIFY_EXPR_THROW

#define _VERIFY_EXPR_THROW (   expr,
  msg,
  exc 
)    _VERIFY_CMD(expr, throw (exc))

Definition at line 166 of file albaDbg.h.

◆ _VERIFY_THROW

#define _VERIFY_THROW (   expr,
  exc 
)    _VERIFY_CMD(expr, throw (exc))

Definition at line 167 of file albaDbg.h.

◆ _VERIFY_EXPR_RPT_THROW

#define _VERIFY_EXPR_RPT_THROW (   expr,
  msg,
  exc 
)    _VERIFY_CMD(expr, throw (exc))

Definition at line 168 of file albaDbg.h.

◆ _VERIFY_PRT_THROW

#define _VERIFY_PRT_THROW (   expr,
  exc 
)    _VERIFY_CMD(expr, throw (exc))

Definition at line 169 of file albaDbg.h.