changed order of params for check_value()

This commit is contained in:
jlamothe 2023-11-16 22:41:42 +00:00
parent a7351b5667
commit 7818e3d646
2 changed files with 9 additions and 6 deletions

View File

@ -187,9 +187,9 @@ single_test_context(
void check_value(
TestState *s,
const char *context,
void (*test)(TestState *, void *, void *),
void *chk_val,
void *ref_val,
void (*test)(TestState *, void *, void *)
void *ref_val
)
{
if (!(s && test)) return;

11
9unit.h
View File

@ -98,13 +98,16 @@ extern void single_test_context(
extern void check_value(
TestState *, // the current test state
const char *, // a description of the context
void *, // the value being checked
void *, // the reference value
void (*)( // the test function
// the test function
void (*)(
TestState *,
void *, // the check value
void * // the reference value
)
),
void *, // the value being checked
void * // the reference value
);
//jl