1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00
Ibrahim Numanagić ac68e1e6f1
Fix ABI incompatibilities (#119)
* Fix ABI incompatibilities

* Fix codon-jit on macOS
2022-12-18 13:12:32 -05:00

17 lines
534 B
Cython

# Copyright (C) 2022 Exaloop Inc. <https://exaloop.io>
from libcpp.string cimport string
from libcpp.vector cimport vector
cdef extern from "codon/compiler/jit_extern.h" namespace "codon::jit":
cdef cppclass JIT
cdef cppclass JITResult:
void *result
string message
bint operator bool()
JIT *jitInit(string)
JITResult jitExecuteSafe(JIT*, string, string, int, char)
JITResult jitExecutePython(JIT*, string, vector[string], string, vector[string], object, char)
string getJITLibrary()