Only export debugprint when HB_DEBUG_WASM

This commit is contained in:
Simon Cozens 2023-02-23 16:41:17 +00:00 committed by Behdad Esfahbod
parent 89c50b0ccb
commit ed1a70c7e8
1 changed files with 2 additions and 0 deletions

View File

@ -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