diff options
author | Michael Davidsaver <mdavidsaver@gmail.com> | 2016-07-09 13:16:48 -0400 |
---|---|---|
committer | Michael Davidsaver <mdavidsaver@gmail.com> | 2016-07-09 13:16:48 -0400 |
commit | ed5def7f7332d9e6e74293000b1794720b597fb4 (patch) | |
tree | da59c7dece30487111ea014f59e682f03f7305e1 /testme.h | |
parent | 41c8b5b3edfd98e89475fb110fafe6a096f0e6d5 (diff) |
more printing
Diffstat (limited to 'testme.h')
-rw-r--r-- | testme.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -2,13 +2,15 @@ #define TESTME_H #include <stdint.h> +#include <stdarg.h> void testInit(unsigned ntests); -void testOk(int c, const char *msg); -void testPass(const char *msg); -void testFail(const char *msg); -void testDiag(const char *msg); +void testOk(int c, const char *msg, ...) __attribute__((format(__printf__,2,3))); +void testVOk(int c, const char *msg, va_list) __attribute__((format(__printf__,2,0))); +void testPass(const char *msg, ...) __attribute__((format(__printf__,1,2))); +void testFail(const char *msg, ...) __attribute__((format(__printf__,1,2))); +void testDiag(const char *msg, ...) __attribute__((format(__printf__,1,2))); -void testEqI(uint32_t expect, uint32_t actual, const char *msg); +void testEqI(uint32_t expect, uint32_t actual, const char *msg, ...) __attribute__((format(__printf__,3,4))); #endif /* TESTME_H */ |