diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2020-09-17 17:09:42 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:23 -0400 |
commit | b8a3f2ed6177c753a35feaa4239a47de0a97ee77 (patch) | |
tree | 0d09d5143b633bff6f3edeeb138219fb3a8360d1 /ujit_utils.h | |
parent | 77cfdb24d4d7445a6e8f4a110d4e2159360f3c2b (diff) |
Add function to print strings from generated code
Diffstat (limited to 'ujit_utils.h')
-rw-r--r-- | ujit_utils.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ujit_utils.h b/ujit_utils.h new file mode 100644 index 0000000000..eaaba4288d --- /dev/null +++ b/ujit_utils.h @@ -0,0 +1,13 @@ +#ifndef UJIT_UTILS_H +#define UJIT_UTILS_H 1 + +#include <stdint.h> +#include <stddef.h> +#include <stdbool.h> +#include "ujit_asm.h" + +void push_regs(codeblock_t* cb); +void pop_regs(codeblock_t* cb); +void print_str(codeblock_t* cb, const char* str); + +#endif // #ifndef UJIT_UTILS_H |