Skip to content

Commit 79d3649

Browse files
committed
Bugfixes in check_reduction.c
1 parent ecde75c commit 79d3649

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/check_reduction.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <stdint.h>
88
#include <stddef.h>
99
#include <stdlib.h>
10+
#include <math.h>
1011

1112

1213
extern void *ctx;
@@ -18,7 +19,9 @@ void teardown(void);
1819
/* Defines */
1920
#define MAXERRPRINT 16
2021
#define ga_assert_ok(e) ck_assert_int_eq(e, GA_NO_ERROR)
21-
22+
#ifndef ck_assert_ptr_nonnull
23+
#define ck_assert_ptr_nonnull(p) ck_assert_msg((p), "Null Pointer!")
24+
#endif
2225

2326

2427

0 commit comments

Comments
 (0)