[wasm] Rename macro
This commit is contained in:
parent
23b58b5667
commit
a5c844a1de
|
@ -35,7 +35,7 @@ void
|
||||||
blob_free (HB_WASM_EXEC_ENV
|
blob_free (HB_WASM_EXEC_ENV
|
||||||
ptr_t(blob_t) blobptr)
|
ptr_t(blob_t) blobptr)
|
||||||
{
|
{
|
||||||
HB_STRUCT_TYPE (blob_t, blob);
|
HB_OUT_PARAM (blob_t, blob);
|
||||||
if (unlikely (!blob))
|
if (unlikely (!blob))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ void
|
||||||
buffer_contents_free (HB_WASM_EXEC_ENV
|
buffer_contents_free (HB_WASM_EXEC_ENV
|
||||||
ptr_t(buffer_contents_t) contentsptr)
|
ptr_t(buffer_contents_t) contentsptr)
|
||||||
{
|
{
|
||||||
HB_STRUCT_TYPE (buffer_contents_t, contents);
|
HB_OUT_PARAM (buffer_contents_t, contents);
|
||||||
if (unlikely (!contents))
|
if (unlikely (!contents))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ void
|
||||||
ptr_t(buffer_contents_t) contentsptr,
|
ptr_t(buffer_contents_t) contentsptr,
|
||||||
uint32_t size)
|
uint32_t size)
|
||||||
{
|
{
|
||||||
HB_STRUCT_TYPE (buffer_contents_t, contents);
|
HB_OUT_PARAM (buffer_contents_t, contents);
|
||||||
if (unlikely (!contents))
|
if (unlikely (!contents))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ buffer_set_contents (HB_WASM_EXEC_ENV
|
||||||
ptr_t(const buffer_contents_t) contentsptr)
|
ptr_t(const buffer_contents_t) contentsptr)
|
||||||
{
|
{
|
||||||
HB_REF2OBJ (buffer);
|
HB_REF2OBJ (buffer);
|
||||||
HB_STRUCT_TYPE (buffer_contents_t, contents);
|
HB_OUT_PARAM (buffer_contents_t, contents);
|
||||||
if (unlikely (!contents))
|
if (unlikely (!contents))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
@ -51,8 +51,8 @@ font_get_scale (HB_WASM_EXEC_ENV
|
||||||
{
|
{
|
||||||
HB_REF2OBJ (font);
|
HB_REF2OBJ (font);
|
||||||
|
|
||||||
HB_STRUCT_TYPE(int32_t, x_scale);
|
HB_OUT_PARAM(int32_t, x_scale);
|
||||||
HB_STRUCT_TYPE(int32_t, y_scale);
|
HB_OUT_PARAM(int32_t, y_scale);
|
||||||
|
|
||||||
hb_font_get_scale (font, x_scale, y_scale);
|
hb_font_get_scale (font, x_scale, y_scale);
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ HB_INTERNAL extern hb_user_data_key_t _hb_wasm_ref_type_key;
|
||||||
} \
|
} \
|
||||||
type &name = *_name_ptr
|
type &name = *_name_ptr
|
||||||
|
|
||||||
#define HB_STRUCT_TYPE(type, name) \
|
#define HB_OUT_PARAM(type, name) \
|
||||||
type *name = nullptr; \
|
type *name = nullptr; \
|
||||||
HB_STMT_START { \
|
HB_STMT_START { \
|
||||||
if (likely (wasm_runtime_validate_app_addr (module_inst, \
|
if (likely (wasm_runtime_validate_app_addr (module_inst, \
|
||||||
|
|
Loading…
Reference in New Issue