mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-16 14:41:28 +00:00
fix: improve formatting of CHECK_INSTRUCTION_LIMIT macro for better readability
This commit is contained in:
parent
76c14489c5
commit
446c52b8c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user