File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 29
29
#include < cstdlib>
30
30
#include < iostream>
31
31
32
- #define CHECK_MEMORY (ptr ) \
33
- if ((ptr) == nullptr ) { \
34
- std::cerr << " Failed to allocate memory: " << ( #ptr ) << " \n " ; \
35
- exit (EXIT_FAILURE); \
32
+ #define CHECK_MEMORY (ptr ) \
33
+ if ((ptr) == nullptr ) { \
34
+ std::cerr << " Failed to allocate memory: " << (#ptr) << " \n " ; \
35
+ exit (EXIT_FAILURE); \
36
36
}
37
37
38
38
/* *
@@ -118,7 +118,7 @@ int main(int argc, char **argv) {
118
118
for (size_t i = 0 ; i < n_points; i++) {
119
119
if (std::abs (h_Y[i] - h_expected[i]) >= 1e-6 ) {
120
120
std::cerr << " Mismatch at index " << i << " : expected " << h_expected[i]
121
- << " , but got " << h_Y[i] << " \n " ;
121
+ << " , but got " << h_Y[i] << " \n " ;
122
122
exit (EXIT_FAILURE);
123
123
}
124
124
}
You can’t perform that action at this time.
0 commit comments