All Downloads are FREE. Search and download functionalities are using the official Maven repository.

astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_IdentifierInfo_cxx_0xc7d01328.cc Maven / Gradle / Ivy

The newest version!
#include 
#include 
#include "clang/Basic/IdentifierTable.h"

#ifdef __cplusplus
extern "C" {
#endif

// Common Stubs

JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_IdentifierInfo_1cxx_10xc7d01328__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
    return (jint)sizeof(clang::IdentifierInfo);
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_IdentifierInfo_1cxx_10xc7d01328_nativeGetName(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
	return reinterpret_cast(new((void*)rv_base) llvm::StringRef(reinterpret_cast(ptr)->getName()));
}

#ifdef __cplusplus
}
#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy