astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_ErrorOr_cxx_0x4a426fd9.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/Support/ErrorOr.h"
#include
#include "llvm/Support/MemoryBuffer.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_ErrorOr_1cxx_10x4a426fd9__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::ErrorOr>);
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_ErrorOr_1cxx_10x4a426fd9_nativeBool(JNIEnv*, jclass, jlong ptr) {
return (*reinterpret_cast>*>(ptr)) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ErrorOr_1cxx_10x4a426fd9_nativeGet(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(&(reinterpret_cast>*>(ptr)->get()));
}
#ifdef __cplusplus
}
#endif