astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_DeclarationName_cxx_0x51c55314.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "clang/AST/DeclarationName.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_DeclarationName_1cxx_10x51c55314__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(clang::DeclarationName);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_DeclarationName_1cxx_10x51c55314_nativeGetAsString(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) std::string(reinterpret_cast(ptr)->getAsString()));
}
#ifdef __cplusplus
}
#endif