-
-#define MSG_BT(ptr, m) \
- do {xbt_ex_t *_xbt_ex_t = xbt_new0(xbt_ex_t, 1); \
- /* build the exception */ \
- _xbt_ex_t->msg = (bprintf(m)); \
- _xbt_ex_t->category = (xbt_errcat_t)(0); \
- _xbt_ex_t->value = (0); \
- _xbt_ex_t->procname = (char*)xbt_procname(); \
- _xbt_ex_t->pid = xbt_getpid(); \
- _xbt_ex_t->file = (char*)__FILE__; \
- _xbt_ex_t->line = __LINE__; \
- _xbt_ex_t->func = (char*)_XBT_FUNCTION; \
- _xbt_ex_t->bt_strings = NULL; \
- xbt_backtrace_current(_xbt_ex_t); \
- ptr = _xbt_ex_t; } while(0)
-