swissChili | 8cfb7c4 | 2021-04-18 21:17:58 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | #include <stddef.h> |
swissChili | f3e7f18 | 2021-04-20 13:57:22 -0700 | [diff] [blame] | 5 | #include <dasm_proto.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 |
| 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 | |
| 14 | void *link (dasm_State **Dst); |