From 048f4278c00503a88053324692dd42c1cb7876a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 5 Sep 2024 22:53:09 +0200 Subject: [PATCH] Fix misleading indentation compilation errors --- quickjs.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/quickjs.c b/quickjs.c index 9766017..a3eb739 100644 --- a/quickjs.c +++ b/quickjs.c @@ -26493,8 +26493,10 @@ JSValue JS_GetModuleNamespace(JSContext *ctx, JSModuleDef *m) #ifdef DUMP_MODULE_RESOLVE #define module_trace(ctx, ...) \ - do if (check_dump_flag(ctx->rt, DUMP_MODULE_RESOLVE)) \ - printf(__VA_ARGS__); while (0) + do { \ + if (check_dump_flag(ctx->rt, DUMP_MODULE_RESOLVE)) \ + printf(__VA_ARGS__); \ + } while (0) #else #define module_trace(...) #endif @@ -46338,8 +46340,10 @@ static void promise_reaction_data_free(JSRuntime *rt, #ifdef DUMP_PROMISE #define promise_trace(ctx, ...) \ - do if (check_dump_flag(ctx->rt, DUMP_PROMISE)) \ - printf(__VA_ARGS__); while (0) + do { \ + if (check_dump_flag(ctx->rt, DUMP_PROMISE)) \ + printf(__VA_ARGS__); \ + } while (0) #else #define promise_trace(...) #endif