diff options
Diffstat (limited to 'src/tests/asn.1/debug.h')
-rw-r--r-- | src/tests/asn.1/debug.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/tests/asn.1/debug.h b/src/tests/asn.1/debug.h index 0929962e7..c538c36d2 100644 --- a/src/tests/asn.1/debug.h +++ b/src/tests/asn.1/debug.h @@ -1,20 +1,21 @@ +/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef __DEBUG_H__ #define __DEBUG_H__ /* - assert utility macro for test programs: - If the predicate (pred) is true, then - OK: <message> is printed. Otherwise, - ERROR: <message> is printed. + assert utility macro for test programs: + If the predicate (pred) is true, then + OK: <message> is printed. Otherwise, + ERROR: <message> is printed. - message should be a printf format string. + message should be a printf format string. */ #include <stdio.h> -#define test(pred,message)\ - if(pred) printf("OK: ");\ - else { printf("ERROR: "); error_count++; }\ - printf(message); +#define test(pred,message) \ + if(pred) printf("OK: "); \ + else { printf("ERROR: "); error_count++; } \ + printf(message); #endif |