Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / sshd / libtomcrypt / mycrypt_argchk.h
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