1 /* Defines the LTC_ARGCHK macro used within the library */
2 /* ARGTYPE is defined in mycrypt_cfg.h */
7 /* this is the default LibTomCrypt macro */
8 void crypt_argchk(char *v, char *s, int d);
9 #define LTC_ARGCHK(x) if (!(x)) { crypt_argchk(#x, __FILE__, __LINE__); }
10 #define LTC_ARGCHKVD(x) LTC_ARGCHK(x)
14 /* fatal type of error */
15 #define LTC_ARGCHK(x) assert((x))
16 #define LTC_ARGCHKVD(x) LTC_ARGCHK(x)
20 #define LTC_ARGCHK(x) if (!(x)) { fprintf(stderr, "\nwarning: ARGCHK failed at %s:%d\n", __FILE__, __LINE__); }
21 #define LTC_ARGCHKVD(x) LTC_ARGCHK(x)
26 #define LTC_ARGCHKVD(x) LTC_ARGCHK(x)
30 #define LTC_ARGCHK(x) if (!(x)) return CRYPT_INVALID_ARG;
31 #define LTC_ARGCHKVD(x) if (!(x)) return;
36 /* $Source: /cvs/libtom/libtomcrypt/src/headers/tomcrypt_argchk.h,v $ */
37 /* $Revision: 1.5 $ */
38 /* $Date: 2006/08/27 20:50:21 $ */