created overridable report() function to be used in place of print()

This commit is contained in:
jlamothe
2023-11-14 23:53:43 +00:00
parent 85a6d49b38
commit cead3f67d0
5 changed files with 60 additions and 12 deletions

View File

@@ -40,6 +40,7 @@ struct TestState
const char *context; // immediate context of current test
const char *full_context; // full context of current test
int depth; // how many tests "deep" are we?
void (*report)(const char *); // prints a string immediately
};
struct TestLogEntry