astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_CXXBaseSpecifier_cxx_0x9d4385fb.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "clang/AST/DeclCXX.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_CXXBaseSpecifier_1cxx_10x9d4385fb__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(clang::CXXBaseSpecifier);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_CXXBaseSpecifier_1cxx_10x9d4385fb_nativeGetType(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) clang::QualType(reinterpret_cast(ptr)->getType()));
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_CXXBaseSpecifier_1cxx_10x9d4385fb_nativeIsVirtual(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isVirtual()) ? JNI_TRUE : JNI_FALSE;
}
#ifdef __cplusplus
}
#endif