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_Qualifiers_cxx_0x5a63efba.cc Maven / Gradle / Ivy

The newest version!
#include 
#include 
#include "clang/AST/Type.h"

#ifdef __cplusplus
extern "C" {
#endif

// Common Stubs

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

JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeAddConst(JNIEnv*, jclass, jlong ptr) {
	reinterpret_cast(ptr)->addConst();
}

JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeAddRestrict(JNIEnv*, jclass, jlong ptr) {
	reinterpret_cast(ptr)->addRestrict();
}

JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeAddVolatile(JNIEnv*, jclass, jlong ptr) {
	reinterpret_cast(ptr)->addVolatile();
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeGetAsString(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
	return reinterpret_cast(new((void*)rv_base) std::string(reinterpret_cast(ptr)->getAsString()));
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeHasConst(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->hasConst()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeHasOnlyConst(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->hasOnlyConst()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeHasOnlyRestrict(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->hasOnlyRestrict()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeHasOnlyVolatile(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->hasOnlyVolatile()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeHasRestrict(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->hasRestrict()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeHasVolatile(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->hasVolatile()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeRemoveConst(JNIEnv*, jclass, jlong ptr) {
	reinterpret_cast(ptr)->removeConst();
}

JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeRemoveRestrict(JNIEnv*, jclass, jlong ptr) {
	reinterpret_cast(ptr)->removeRestrict();
}

JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_clang_Qualifiers_1cxx_10x5a63efba_nativeRemoveVolatile(JNIEnv*, jclass, jlong ptr) {
	reinterpret_cast(ptr)->removeVolatile();
}

#ifdef __cplusplus
}
#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy