astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_Binary_cxx_0xb4c94917.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/Object/Binary.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_Binary_1cxx_10xb4c94917__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::object::Binary);
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_Binary_1cxx_10xb4c94917_nativeIsMachO(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isMachO()) ? JNI_TRUE : JNI_FALSE;
}
#ifdef __cplusplus
}
#endif