introduced CHECK_E

This commit is contained in:
Yann Collet
2016-09-06 16:38:51 +02:00
parent 3e21ec5b01
commit 95d07d7447
3 changed files with 14 additions and 31 deletions
+1
View File
@@ -47,6 +47,7 @@
#define MIN(a,b) ((a)<(b) ? (a) : (b))
#define MAX(a,b) ((a)>(b) ? (a) : (b))
#define CHECK_F(f) { size_t const errcod = f; if (ERR_isError(errcod)) return errcod; } /* check and Forward error code */
#define CHECK_E(f, e) { size_t const errcod = f; if (ERR_isError(errcod)) return ERROR(e); } /* check and send Error code */
/*-*************************************