From 4459b8b3aa9d73895391785a99dcc87134e80601 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Tue, 17 Sep 2024 08:47:03 +0200 Subject: More lsp support This makes the LSP support complete for now: - Completion - Diagnostics - Goto implementation/declaration - Rename - Documentation - Find references --- test/assert.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/assert.h') diff --git a/test/assert.h b/test/assert.h index 8b730b2..b9b5719 100644 --- a/test/assert.h +++ b/test/assert.h @@ -1,10 +1,10 @@ #include -#define ASSERT(cond, msg) assert(cond, #cond, __FILE__, __LINE__, msg) -#define ASSERT_STR_EQ(left, right, msg) \ - assert_streq(left, right, __FILE__, __LINE__, msg) +#define ASSERT(cond, msg, ...) assert(cond, #cond, __FILE__, __LINE__, msg, ##__VA_ARGS__) +#define ASSERT_STR_EQ(left, right, msg, ...) \ + assert_streq(left, right, __FILE__, __LINE__, msg, ##__VA_ARGS__) void assert(bool cond, const char *cond_str, const char *file, int line, - const char *msg); + const char *msg, ...); void assert_streq(const char *left, const char *right, const char *file, - int line, const char *msg); + int line, const char *msg, ...); -- cgit v1.2.3