diff options
Diffstat (limited to 'docs/application/testing.md')
| -rw-r--r-- | docs/application/testing.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/application/testing.md b/docs/application/testing.md index 6e85c6f..2964fae 100644 --- a/docs/application/testing.md +++ b/docs/application/testing.md @@ -19,7 +19,7 @@ FAIL(FAIL_STRING) ```c typedef struct { const char *name; - kpl_error error; + kpl_error *error; } kpl_test; // TODO STORE ERRORS FOR PRINT AT END @@ -29,7 +29,7 @@ typedef struct { #define TEST(NAME) \ _TEST_FN(NAME); \ static void __attribute__((constructor)) _kpl_test_constructor_##NAME(void) { \ - kpl_test _test = { .name = #NAME; .error = nullptr }; \ + kpl_test _test = { .name = #NAME; .error = NULL }; \ kpl_test_fn_##NAME(&test); \ if (_test.error) { \ /* TODO STORE ERROR */ \ |
