libghostty
Toggle main menu visibility
Loading...
Searching...
No Matches
wasm.h
Go to the documentation of this file.
1
6
7
#ifndef GHOSTTY_VT_WASM_H
8
#define GHOSTTY_VT_WASM_H
9
10
#ifdef __wasm__
11
12
#include <stddef.h>
13
#include <
ghostty/vt/types.h
>
14
97
113
GHOSTTY_API
void
*
ghostty_wasm_alloc
(
size_t
len);
114
122
GHOSTTY_API
void
ghostty_wasm_free
(
void
*ptr,
size_t
len);
123
132
GHOSTTY_API
void
**
ghostty_wasm_alloc_opaque
(
void
);
133
140
GHOSTTY_API
void
ghostty_wasm_free_opaque
(
void
**ptr);
141
154
GHOSTTY_API
void
*
ghostty_wasm_take_opaque
(
void
**slot);
155
157
158
#endif
/* __wasm__ */
159
160
#endif
/* GHOSTTY_VT_WASM_H */
ghostty_wasm_take_opaque
GHOSTTY_API void * ghostty_wasm_take_opaque(void **slot)
ghostty_wasm_free
GHOSTTY_API void ghostty_wasm_free(void *ptr, size_t len)
ghostty_wasm_alloc_opaque
GHOSTTY_API void ** ghostty_wasm_alloc_opaque(void)
ghostty_wasm_free_opaque
GHOSTTY_API void ghostty_wasm_free_opaque(void **ptr)
ghostty_wasm_alloc
GHOSTTY_API void * ghostty_wasm_alloc(size_t len)
types.h
include
ghostty
vt
wasm.h
Generated by
1.18.0