swissChili | 8cfb7c4 | 2021-04-18 21:17:58 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
swissChili | f3e7f18 | 2021-04-20 13:57:22 -0700 | [diff] [blame] | 3 | #include <dasm_proto.h> |
swissChili | 53472e8 | 2021-05-08 16:06:32 -0700 | [diff] [blame] | 4 | #include <stddef.h> |
| 5 | #include <stdint.h> |
swissChili | 8cfb7c4 | 2021-04-18 21:17:58 -0700 | [diff] [blame] | 6 | |
| 7 | /* Platform specific definitions */ |
| 8 | |
| 9 | // Must return an address aligned to 8 bytes |
swissChili | 53472e8 | 2021-05-08 16:06:32 -0700 | [diff] [blame] | 10 | void *malloc_aligned(size_t size); |
| 11 | void *realloc_aligned(void *addr, size_t size); |
| 12 | void free_aligned(void *addr); |
swissChili | f3e7f18 | 2021-04-20 13:57:22 -0700 | [diff] [blame] | 13 | |
swissChili | 53472e8 | 2021-05-08 16:06:32 -0700 | [diff] [blame] | 14 | void *link(dasm_State **Dst); |