From 446c52b8c889a0b0910c13a7733bc09f99e41c64 Mon Sep 17 00:00:00 2001 From: Alix ANNERAUD Date: Tue, 18 Mar 2025 20:11:17 +0100 Subject: [PATCH] fix: improve formatting of CHECK_INSTRUCTION_LIMIT macro for better readability --- core/iwasm/interpreter/wasm_interp_fast.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/iwasm/interpreter/wasm_interp_fast.c b/core/iwasm/interpreter/wasm_interp_fast.c index 6d3a2ef19..8bac1504c 100644 --- a/core/iwasm/interpreter/wasm_interp_fast.c +++ b/core/iwasm/interpreter/wasm_interp_fast.c @@ -102,12 +102,12 @@ typedef float64 CellType_F64; } while (0) #if WASM_INSTRUCTION_METERING != 0 -#define CHECK_INSTRUCTION_LIMIT() \ - if (instructions_left == 0) { \ - wasm_set_exception(module, "instruction limit exceeded"); \ - goto got_exception; \ - } \ - else if (instructions_left > 0) \ +#define CHECK_INSTRUCTION_LIMIT() \ + if (instructions_left == 0) { \ + wasm_set_exception(module, "instruction limit exceeded"); \ + goto got_exception; \ + } \ + else if (instructions_left > 0) \ instructions_left--; #else