[wasm] Rename macro

This commit is contained in:
Behdad Esfahbod 2023-02-24 09:52:38 -07:00
parent 23b58b5667
commit a5c844a1de
4 changed files with 7 additions and 7 deletions

View File

@ -35,7 +35,7 @@ void
blob_free (HB_WASM_EXEC_ENV
ptr_t(blob_t) blobptr)
{
HB_STRUCT_TYPE (blob_t, blob);
HB_OUT_PARAM (blob_t, blob);
if (unlikely (!blob))
return;

View File

@ -39,7 +39,7 @@ void
buffer_contents_free (HB_WASM_EXEC_ENV
ptr_t(buffer_contents_t) contentsptr)
{
HB_STRUCT_TYPE (buffer_contents_t, contents);
HB_OUT_PARAM (buffer_contents_t, contents);
if (unlikely (!contents))
return;
@ -56,7 +56,7 @@ void
ptr_t(buffer_contents_t) contentsptr,
uint32_t size)
{
HB_STRUCT_TYPE (buffer_contents_t, contents);
HB_OUT_PARAM (buffer_contents_t, contents);
if (unlikely (!contents))
return;
@ -105,7 +105,7 @@ buffer_set_contents (HB_WASM_EXEC_ENV
ptr_t(const buffer_contents_t) contentsptr)
{
HB_REF2OBJ (buffer);
HB_STRUCT_TYPE (buffer_contents_t, contents);
HB_OUT_PARAM (buffer_contents_t, contents);
if (unlikely (!contents))
return false;

View File

@ -51,8 +51,8 @@ font_get_scale (HB_WASM_EXEC_ENV
{
HB_REF2OBJ (font);
HB_STRUCT_TYPE(int32_t, x_scale);
HB_STRUCT_TYPE(int32_t, y_scale);
HB_OUT_PARAM(int32_t, x_scale);
HB_OUT_PARAM(int32_t, y_scale);
hb_font_get_scale (font, x_scale, y_scale);
}

View File

@ -91,7 +91,7 @@ HB_INTERNAL extern hb_user_data_key_t _hb_wasm_ref_type_key;
} \
type &name = *_name_ptr
#define HB_STRUCT_TYPE(type, name) \
#define HB_OUT_PARAM(type, name) \
type *name = nullptr; \
HB_STMT_START { \
if (likely (wasm_runtime_validate_app_addr (module_inst, \