astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_SourceLocation_cxx_0xcb172b21.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "clang/Basic/SourceLocation.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_SourceLocation_1cxx_10xcb172b21__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(clang::SourceLocation);
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_SourceLocation_1cxx_10xcb172b21_nativeIsFileID(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isFileID()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_SourceLocation_1cxx_10xcb172b21_nativeIsInvalid(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isInvalid()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_SourceLocation_1cxx_10xcb172b21_nativeIsMacroID(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isMacroID()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_SourceLocation_1cxx_10xcb172b21_nativeIsValid(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isValid()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_SourceLocation_1cxx_10xcb172b21_nativePrintToString(JNIEnv*, jclass, jlong ptr, jlong rv_base, jlong arg0 /* SM0 */) {
return reinterpret_cast(new((void*)rv_base) std::string(reinterpret_cast(ptr)->printToString(*reinterpret_cast(arg0))));
}
#ifdef __cplusplus
}
#endif