From 3fd763a95c0493a0767e0aa54a77598e30a1d661 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 25 May 2022 19:15:51 +0900 Subject: [PATCH] wasm_export.h: Make RuntimeInitArgs less config dependent (#1190) This header file is supposed to be used by user code, which is not a part of WAMR. Usually WAMR configuration is not available there, remove DEBUG_INTERP macro control in it. --- core/iwasm/include/wasm_export.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/iwasm/include/wasm_export.h b/core/iwasm/include/wasm_export.h index d21a6cabf..adab71b2c 100644 --- a/core/iwasm/include/wasm_export.h +++ b/core/iwasm/include/wasm_export.h @@ -133,11 +133,12 @@ typedef struct RuntimeInitArgs { /* maximum thread number, only used when WASM_ENABLE_THREAD_MGR is defined */ uint32_t max_thread_num; -#if WASM_ENABLE_DEBUG_INTERP != 0 + + /* Debug settings, only used when + WASM_ENABLE_DEBUG_INTERP != 0 */ char ip_addr[128]; int platform_port; int instance_port; -#endif } RuntimeInitArgs; #ifndef WASM_VALKIND_T_DEFINED