mirror of
https://github.com/janet-lang/janet
synced 2025-11-08 11:33:02 +00:00
Add ffi/jitfn for JIT compilation.
Convert a byte sequence of machine code to an an executable pointer that can be used with ffi/call.
This commit is contained in:
@@ -171,6 +171,13 @@ extern "C" {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* If FFI is enabled and FFI-JIT is not disabled... */
|
||||
#ifdef JANET_FFI
|
||||
#ifndef JANET_NO_FFI_JIT
|
||||
#define JANET_FFI_JIT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Enable or disable the assembler. Enabled by default. */
|
||||
#ifndef JANET_NO_ASSEMBLER
|
||||
#define JANET_ASSEMBLER
|
||||
|
||||
Reference in New Issue
Block a user