aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/stdlib.h')
-rw-r--r--src/stdlib/stdlib.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/stdlib/stdlib.h b/src/stdlib/stdlib.h
index 1b633dff..49ec43fb 100644
--- a/src/stdlib/stdlib.h
+++ b/src/stdlib/stdlib.h
@@ -39,10 +39,11 @@ void end_inspect(const void *expr, const TypeInfo_t *type);
end_inspect(&_expr, typeinfo); \
}
__attribute__((nonnull))
-void test_value(const void *expr, const TypeInfo_t *type, const char *expected);
-#define test(expr, typeinfo, expected, start, end) {\
+void test_value(const void *expr, const void *expected, const TypeInfo_t *type);
+#define test(expr, expected, typeinfo, start, end) {\
auto _expr = expr; \
- test_value(&_expr, typeinfo, expected); \
+ auto _expected = expected; \
+ test_value(&_expr, &_expected, typeinfo); \
}
void say(Text_t text, bool newline);