diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-10-31 01:30:12 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-10-31 01:30:12 -0400 |
| commit | a60e0e5e9a5fc0e625ece0151328cde6147e8abf (patch) | |
| tree | 979199b268f44d0a4b379016d2485fc87384bc8a /stdlib | |
| parent | bbbfc692fc0b86c02f012defe4965b10852be185 (diff) | |
Remove unused args for end_test()
Diffstat (limited to 'stdlib')
| -rw-r--r-- | stdlib/stdlib.c | 5 | ||||
| -rw-r--r-- | stdlib/stdlib.h | 4 |
2 files changed, 3 insertions, 6 deletions
diff --git a/stdlib/stdlib.c b/stdlib/stdlib.c index 9add4938..8d937384 100644 --- a/stdlib/stdlib.c +++ b/stdlib/stdlib.c @@ -430,11 +430,8 @@ public void start_test(const char *filename, int64_t start, int64_t end) ++TEST_DEPTH; } -public void end_test(const void *expr, const TypeInfo_t *type, const char *expected, const char *filename, int64_t start, int64_t end) +public void end_test(const void *expr, const TypeInfo_t *type, const char *expected) { - (void)filename; - (void)start; - (void)end; --TEST_DEPTH; if (!expr || !type) return; diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index 499d1e1d..7c9bd7e1 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -29,11 +29,11 @@ __attribute__((format(printf, 4, 5))) _Noreturn void fail_source(const char *filename, int64_t start, int64_t end, const char *fmt, ...); Text_t builtin_last_err(); void start_test(const char *filename, int64_t start, int64_t end); -void end_test(const void *expr, const TypeInfo_t *type, const char *expected, const char *filename, int64_t start, int64_t end); +void end_test(const void *expr, const TypeInfo_t *type, const char *expected); #define test(expr, typeinfo, expected, start, end) {\ start_test(__SOURCE_FILE__, start, end); \ auto _expr = expr; \ - end_test(&_expr, typeinfo, expected, __SOURCE_FILE__, start, end); } + end_test(&_expr, typeinfo, expected); } void say(Text_t text, bool newline); Text_t ask(Text_t prompt, bool bold, bool force_tty); _Noreturn void tomo_exit(Text_t text, int32_t status); |
