astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_stdcxx_UniquePtr_cxx_0xcf30570.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/IR/Module.h"
#include "clang/Frontend/ASTUnit.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_stdcxx_UniquePtr_1cxx_10xcf30570__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(std::unique_ptr);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_UniquePtr_1cxx_10xcf30570_nativeGet(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast*>(ptr)->get());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_UniquePtr_1cxx_10xcf30570_nativeRelease(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast*>(ptr)->release());
}
#ifdef __cplusplus
}
#endif