Mercurial > dropbear
annotate mycrypt_argchk.h @ 143:5d99163f7e32 libtomcrypt-orig
import of libtomcrypt 0.99
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 19 Dec 2004 11:34:45 +0000 |
parents | 7faae8f46238 |
children | 7ed585a2c53b |
rev | line source |
---|---|
3 | 1 /* Defines the _ARGCHK macro used within the library */ |
2 /* ARGTYPE is defined in mycrypt_cfg.h */ | |
3 #if ARGTYPE == 0 | |
4 | |
5 #include <signal.h> | |
6 | |
7 /* this is the default LibTomCrypt macro */ | |
143 | 8 void crypt_argchk(char *v, char *s, int d); |
3 | 9 #define _ARGCHK(x) if (!(x)) { crypt_argchk(#x, __FILE__, __LINE__); } |
10 | |
11 #elif ARGTYPE == 1 | |
12 | |
13 /* fatal type of error */ | |
14 #define _ARGCHK(x) assert((x)) | |
15 | |
16 #elif ARGTYPE == 2 | |
17 | |
18 #define _ARGCHK(x) | |
19 | |
20 #endif | |
21 |