Skip to content

Commit 5c64eac

Browse files
committed
add no throw error message
1 parent 529462c commit 5c64eac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/error.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ do { \
2020
error(__FILE__ ":" TOSTRING(__LINE__) ": " msg); \
2121
} while (0)
2222

23+
/** display error message @ingroup CallsMalloc */
24+
#define ERROR_MSG(msg) error(__FILE__ ":" TOSTRING(__LINE__) \
25+
": " msg)
26+
2327
/** true as soon as one error throw */
2428
#define ERROR_STATE _errorState;
2529

0 commit comments

Comments
 (0)