libgpac
Documentation of the core library of GPAC
|
#include <gpac/setup.h>
Macros | |
#define | unittest(suffix) void test_##suffix(void) |
#define | assert_true(expr) |
#define | assert_false(expr) assert_true(!(expr)) |
#define | assert_equal_str(str1, str2) assert_true(!strcmp((str1), (str2))) |
#define | assert_equal_mem(m1, m2, sz) assert_true(memcmp(m1, m2, sz) == 0) |
#define | assert_not_equal_str(str1, str2) assert_true(strcmp((str1), (str2))) |
#define | assert_equal(a, b) assert_true((a) == (b)) |
#define | assert_greater(a, b) assert_true((a) > (b)) |
#define | assert_greater_equal(a, b) assert_true((a) >= (b)) |
#define | assert_less(a, b) assert_true((a) < (b)) |
#define | assert_less_equal(a, b) assert_true((a) <= (b)) |
#define | assert_not_null(ptr) assert_true((ptr) != NULL) |
Variables | |
int | checks_passed |
int | checks_failed |
static Bool | verbose_ut = GF_FALSE |
static Bool | fatal_ut = GF_TRUE |
#define unittest | ( | suffix | ) | void test_##suffix(void) |
#define assert_true | ( | expr | ) |
#define assert_false | ( | expr | ) | assert_true(!(expr)) |
#define assert_equal_str | ( | str1, | |
str2 | |||
) | assert_true(!strcmp((str1), (str2))) |
#define assert_equal_mem | ( | m1, | |
m2, | |||
sz | |||
) | assert_true(memcmp(m1, m2, sz) == 0) |
#define assert_not_equal_str | ( | str1, | |
str2 | |||
) | assert_true(strcmp((str1), (str2))) |
#define assert_equal | ( | a, | |
b | |||
) | assert_true((a) == (b)) |
#define assert_greater | ( | a, | |
b | |||
) | assert_true((a) > (b)) |
#define assert_greater_equal | ( | a, | |
b | |||
) | assert_true((a) >= (b)) |
#define assert_less | ( | a, | |
b | |||
) | assert_true((a) < (b)) |
#define assert_less_equal | ( | a, | |
b | |||
) | assert_true((a) <= (b)) |
#define assert_not_null | ( | ptr | ) | assert_true((ptr) != NULL) |
|
extern |
|
extern |