From b6c18144106955f30ac9ec645b0c7eac860c6a7f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 3 Mar 2023 11:31:08 -0700 Subject: [PATCH] [wasm] Comment --- src/hb-wasm-api-list.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-wasm-api-list.hh b/src/hb-wasm-api-list.hh index 58fb18e28..3f952e72f 100644 --- a/src/hb-wasm-api-list.hh +++ b/src/hb-wasm-api-list.hh @@ -46,7 +46,8 @@ static void debugprint4 (HB_WASM_EXEC_ENV char *str, int32_t i1, int32_t i2, int #endif #define NATIVE_SYMBOL(signature, name) {#name, (void *) hb::wasm::name, signature, NULL} -/* Note: the array must be static defined since runtime will keep it after registration +/* Note: the array must be static defined since runtime will keep it after registration. + * Also not const, because it modifies it (sorts it). * https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/export_native_api.md * * TODO Allocate this lazily in _hb_wasm_init(). */