Unit test utilties. More...
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Defines | |
#define | check(condition,...) check_impl(condition, __FILE__, __LINE__, "" __VA_ARGS__) |
#define | check_signoff() fprintf(stdout, "%s passed\n", __FILE__) |
Functions | |
static void | check_impl (int condition, const char *file, int line, const char *format,...) |
Unit test utilties.
Definition in file check.h.
#define check | ( | condition, | |
... | |||
) | check_impl(condition, __FILE__, __LINE__, "" __VA_ARGS__) |
#define check_signoff | ( | ) | fprintf(stdout, "%s passed\n", __FILE__) |
static void check_impl | ( | int | condition, |
const char * | file, | ||
int | line, | ||
const char * | format, | ||
... | |||
) | [static] |