mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
17 lines
534 B
Cython
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()
|