File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -639,7 +639,7 @@ class ECDH : public BaseObject {
639
639
key_(key),
640
640
group_(EC_KEY_get0_group(key_)) {
641
641
MakeWeak<ECDH>(this );
642
- ASSERT (group_ != nullptr );
642
+ ASSERT_NE (group_, nullptr );
643
643
}
644
644
645
645
static void New (const v8::FunctionCallbackInfo<v8::Value>& args);
Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ namespace node {
29
29
# define CHECK (expression ) assert(expression)
30
30
#endif
31
31
32
+ #define ASSERT_EQ (a, b ) ASSERT((a) == (b))
33
+ #define ASSERT_GE (a, b ) ASSERT((a) >= (b))
34
+ #define ASSERT_GT (a, b ) ASSERT((a) > (b))
35
+ #define ASSERT_LE (a, b ) ASSERT((a) <= (b))
36
+ #define ASSERT_LT (a, b ) ASSERT((a) < (b))
37
+ #define ASSERT_NE (a, b ) ASSERT((a) != (b))
38
+
32
39
#define CHECK_EQ (a, b ) CHECK((a) == (b))
33
40
#define CHECK_GE (a, b ) CHECK((a) >= (b))
34
41
#define CHECK_GT (a, b ) CHECK((a) > (b))
You can’t perform that action at this time.
0 commit comments