mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-17 07:01:13 +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)
|
} while (0)
|
||||||
|
|
||||||
#if WASM_INSTRUCTION_METERING != 0
|
#if WASM_INSTRUCTION_METERING != 0
|
||||||
#define CHECK_INSTRUCTION_LIMIT() \
|
#define CHECK_INSTRUCTION_LIMIT() \
|
||||||
if (instructions_left == 0) { \
|
if (instructions_left == 0) { \
|
||||||
wasm_set_exception(module, "instruction limit exceeded"); \
|
wasm_set_exception(module, "instruction limit exceeded"); \
|
||||||
goto got_exception; \
|
goto got_exception; \
|
||||||
} \
|
} \
|
||||||
else if (instructions_left > 0) \
|
else if (instructions_left > 0) \
|
||||||
instructions_left--;
|
instructions_left--;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user