comparison mycrypt_argchk.h @ 0:d7da3b1e1540 libtomcrypt

put back the 0.95 makefile which was inadvertently merged over
author Matt Johnston <matt@ucc.asn.au>
date Mon, 31 May 2004 18:21:40 +0000
parents
children 09ab3354aa21
comparison
equal deleted inserted replaced
-1:000000000000 0:d7da3b1e1540
1 /* Defines the _ARGCHK macro used within the library */
2
3 /* ch1-01-1 */
4 /* ARGTYPE is defined in mycrypt_cfg.h */
5 #if ARGTYPE == 2 || defined(NDEBUG)
6
7 #define _ARGCHK(x)
8
9 #elif ARGTYPE == 0
10
11 #include <signal.h>
12
13 /* this is the default LibTomCrypt macro */
14 extern void crypt_argchk(char *v, char *s, int d);
15 #define _ARGCHK(x) if (!(x)) { crypt_argchk(#x, __FILE__, __LINE__); }
16
17 #elif ARGTYPE == 1
18
19 /* fatal type of error */
20 #define _ARGCHK(x) assert((x))
21
22 #endif
23 /* ch1-01-1 */
24