• Home
  • Raw
  • Download

Lines Matching refs:a

33 #define ASSERT_TRUE(a) ASSERT((a), "assert failed on (" #a ") at " __FILE__ ":%d", __LINE__)  argument
34 #define ASSERT_FALSE(a) ASSERT(!(a), "assert failed on (!" #a ") at " __FILE__ ":%d", __LINE__) argument
35 #define ASSERT_EQ(a, b) \ argument
36 ASSERT((a) == (b), "assert failed on (" #a " == " #b ") at " __FILE__ ":%d", __LINE__)
37 #define ASSERT_NE(a, b) \ argument
38 ASSERT((a) != (b), "assert failed on (" #a " != " #b ") at " __FILE__ ":%d", __LINE__)
39 #define ASSERT_GT(a, b) \ argument
40 ASSERT((a) > (b), "assert failed on (" #a " > " #b ") at " __FILE__ ":%d", __LINE__)
41 #define ASSERT_GE(a, b) \ argument
42 ASSERT((a) >= (b), "assert failed on (" #a " >= " #b ") at " __FILE__ ":%d", __LINE__)
43 #define ASSERT_LT(a, b) \ argument
44 ASSERT((a) < (b), "assert failed on (" #a " < " #b ") at " __FILE__ ":%d", __LINE__)
45 #define ASSERT_LE(a, b) \ argument
46 ASSERT((a) <= (b), "assert failed on (" #a " <= " #b ") at " __FILE__ ":%d", __LINE__)
47 #define ASSERT_NULL(a) \ argument
48 ASSERT((a) == nullptr, "assert failed on isNull(" #a ") at " __FILE__ ":%d", __LINE__)
49 #define ASSERT_NOT_NULL(a) \ argument
50 ASSERT((a) != nullptr, "assert failed on isNotNull(" #a ") at " __FILE__ ":%d", __LINE__)
51 #define ASSERT_NAN(a) \ argument
52 ASSERT(isnan(a), "assert failed on isNan(" #a ") at " __FILE__ ":%d", __LINE__)
53 #define ASSERT_EMPTY_CSTR(a) do { \ argument
54 const char *tmp = a; \
56 "assert failed on (empty_cstr(" #a "): " #a " != nullptr) " \
59 "assert failed on (empty_cstr(" #a "): strlen() == 0) " \