[wasm-api] Make ptr_t a pointer on the wasm side
This commit is contained in:
parent
d7a6671676
commit
3b88bd9742
|
@ -69,7 +69,7 @@ HB_WASM_BEGIN_DECLS
|
|||
#define ref_t uint32_t
|
||||
#endif
|
||||
#ifndef ptr_t
|
||||
#define ptr_t uint32_t
|
||||
#define ptr_t(type_t) type_t *
|
||||
#endif
|
||||
|
||||
typedef uint32_t tag_t;
|
||||
|
@ -79,8 +79,9 @@ typedef ref_t face_t;
|
|||
typedef ref_t font_t;
|
||||
typedef ref_t buffer_t;
|
||||
|
||||
typedef struct {
|
||||
ref_t data;
|
||||
typedef struct
|
||||
{
|
||||
ptr_t(char) data;
|
||||
uint32_t length;
|
||||
} blob_t;
|
||||
|
||||
|
|
|
@ -36,7 +36,9 @@
|
|||
#define HB_WASM_API_COMPOUND(ret_t, name) HB_INTERNAL void name
|
||||
|
||||
#define HB_WASM_EXEC_ENV wasm_exec_env_t exec_env,
|
||||
#define HB_WASM_EXEC_ENV_COMPOUND wasm_exec_env_t exec_env, ptr_t retptr,
|
||||
#define HB_WASM_EXEC_ENV_COMPOUND wasm_exec_env_t exec_env, ptr_t() retptr,
|
||||
|
||||
#define ptr_t(type_t) uint32_t
|
||||
|
||||
#include "hb-wasm-api.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue