fix: improve formatting of CHECK_INSTRUCTION_LIMIT macro for better readability

This commit is contained in:
Alix ANNERAUD 2025-03-18 20:11:17 +01:00
parent 76c14489c5
commit 446c52b8c8

View File

@ -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