diff options
author | pommicket <pommicket@gmail.com> | 2025-09-14 22:08:22 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-14 22:08:22 -0400 |
commit | 969bf523b7039c7038b66edde5776278c27941ac (patch) | |
tree | 89a9754ff69046c813f238bff424be7cec722cdb /tests/test.h | |
parent | 0302aca4e1aa3eb495970af40a63f8bf4cf95779 (diff) |
Start tests
Diffstat (limited to 'tests/test.h')
-rw-r--r-- | tests/test.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test.h b/tests/test.h new file mode 100644 index 0000000..5e0b8e5 --- /dev/null +++ b/tests/test.h @@ -0,0 +1,17 @@ +#include <pom.h> + + +#if __GNUC__ >= 6 +#define ATTRIBUTE_PRINTF(fmt, args) __attribute__ ((format(printf, fmt, args))) +#else +#define ATTRIBUTE_PRINTF(fmt, args) +#endif + +#if _MSC_VER >= 1600 +#define PRINTF_FORMAT_STRING _Printf_format_string_ +#else +#define PRINTF_FORMAT_STRING +#endif + +void test_fail(PRINTF_FORMAT_STRING const char *, ...) ATTRIBUTE_PRINTF(1, 2); +void test_parsing(const char *test_dir); |