From db0758f634852f61f56b7a1379de1e018817dcc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=9A=93?= Date: Sun, 2 Mar 2025 13:49:19 -0500 Subject: [PATCH] Rename wasm-rt symbols to reduce probability of symbol conflicts with libretro frontend --- binding-sandbox/wasm-rt.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/binding-sandbox/wasm-rt.h b/binding-sandbox/wasm-rt.h index d6bcec57..7bdad63a 100644 --- a/binding-sandbox/wasm-rt.h +++ b/binding-sandbox/wasm-rt.h @@ -125,20 +125,28 @@ typedef struct { uint32_t size; } wasm_rt_externref_table_t; +#define wasm_rt_is_initialized mkxp_wasm_rt_is_initialized bool wasm_rt_is_initialized(void); +#define wasm_rt_trap mkxp_wasm_rt_trap WASM_RT_NO_RETURN void wasm_rt_trap(wasm_rt_trap_t error); +#define wasm_rt_allocate_memory mkxp_wasm_rt_allocate_memory void wasm_rt_allocate_memory(wasm_rt_memory_t *memory, uint32_t initial_pages, uint32_t max_pages, bool is64); +#define wasm_rt_grow_memory mkxp_wasm_rt_grow_memory uint32_t wasm_rt_grow_memory(wasm_rt_memory_t *memory, uint32_t pages); +#define wasm_rt_free_memory mkxp_wasm_rt_free_memory void wasm_rt_free_memory(wasm_rt_memory_t *memory); +#define wasm_rt_allocate_funcref_table mkxp_wasm_rt_allocate_funcref_table void wasm_rt_allocate_funcref_table(wasm_rt_funcref_table_t *table, uint32_t elements, uint32_t max_elements); +#define wasm_rt_free_funcref_table mkxp_wasm_rt_free_funcref_table void wasm_rt_free_funcref_table(wasm_rt_funcref_table_t *table); +#define wasm_rt_push_funcref mkxp_wasm_rt_push_funcref uint32_t wasm_rt_push_funcref(wasm_rt_funcref_table_t *table, wasm_rt_funcref_t funcref); #ifdef __cplusplus