From ed1a70c7e8ddf78ea3fd3e6208e683870ff7e893 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 23 Feb 2023 16:41:17 +0000 Subject: [PATCH] Only export debugprint when HB_DEBUG_WASM --- src/hb-wasm-api.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-wasm-api.hh b/src/hb-wasm-api.hh index 2430ae7de..122bc8270 100644 --- a/src/hb-wasm-api.hh +++ b/src/hb-wasm-api.hh @@ -64,12 +64,14 @@ static void debugprint(wasm_exec_env_t exec_env, char *the_string, uint8_t len) static NativeSymbol _hb_wasm_native_symbols[] = { NATIVE_SYMBOL ("(r)r", font_get_face), +#ifdef HB_DEBUG_WASM { "debugprint", (void *) debugprint, "($i)", NULL } +#endif }; #undef NATIVE_SYMBOL