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_stdcxx_UniquePtr_cxx_0xb6fca06d.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_10xb6fca06d__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
    return (jint)sizeof(std::unique_ptr);
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_UniquePtr_1cxx_10xb6fca06d_nativeGet(JNIEnv*, jclass, jlong ptr) {
	return reinterpret_cast(reinterpret_cast*>(ptr)->get());
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_stdcxx_UniquePtr_1cxx_10xb6fca06d_nativeRelease(JNIEnv*, jclass, jlong ptr) {
	return reinterpret_cast(reinterpret_cast*>(ptr)->release());
}

#ifdef __cplusplus
}
#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy