Skip to content

Commit b5cd85a

Browse files
resolve this annoying nullptr and NULL issue
1 parent 6627755 commit b5cd85a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

code/logic/fossil/test/unittest.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,13 @@ void fossil_test_print_stack_trace(stack_frame_t *stack_trace);
223223
test_case_t test_name##_test_case = { \
224224
.name = #test_name, \
225225
.test_func = test_name##_test_func, \
226-
.setup_func = NULL, \
227-
.teardown_func = NULL, \
226+
.setup_func = nullptr, \
227+
.teardown_func = nullptr, \
228228
.status = TEST_STATUS_PASS, \
229-
.failure_message = NULL, \
230-
.stack_trace = NULL, \
229+
.failure_message = nullptr, \
230+
.stack_trace = nullptr, \
231231
.execution_time = 0.0, \
232-
.next = NULL \
232+
.next = nullptr \
233233
}; \
234234
extern "C" void test_name##_test_func(void)
235235
#else
@@ -259,8 +259,8 @@ void fossil_test_print_stack_trace(stack_frame_t *stack_trace);
259259
.suite_setup_func = suite_name##_setup_func, \
260260
.suite_teardown_func = suite_name##_teardown_func, \
261261
.total_execution_time = 0.0, \
262-
.tests = NULL, \
263-
.next = NULL \
262+
.tests = nullptr, \
263+
.next = nullptr \
264264
}
265265
#else
266266
#define _FOSSIL_TEST_SUITE(suite_name) \

0 commit comments

Comments
 (0)