Kùzu C++ API
Loading...
Searching...
No Matches
api.h
Go to the documentation of this file.
1#pragma once
2
3// Helpers
4#if defined _WIN32 || defined __CYGWIN__
5#define KUZU_HELPER_DLL_IMPORT __declspec(dllimport)
6#define KUZU_HELPER_DLL_EXPORT __declspec(dllexport)
7#define KUZU_HELPER_DLL_LOCAL
8#define KUZU_HELPER_DEPRECATED __declspec(deprecated)
9#else
10#define KUZU_HELPER_DLL_IMPORT __attribute__((visibility("default")))
11#define KUZU_HELPER_DLL_EXPORT __attribute__((visibility("default")))
12#define KUZU_HELPER_DLL_LOCAL __attribute__((visibility("hidden")))
13#define KUZU_HELPER_DEPRECATED __attribute__((__deprecated__))
14#endif
15
16#ifdef KUZU_STATIC_DEFINE
17#define KUZU_API
18#else
19#ifndef KUZU_API
20#ifdef KUZU_EXPORTS
21/* We are building this library */
22#define KUZU_API KUZU_HELPER_DLL_EXPORT
23#else
24/* We are using this library */
25#define KUZU_API KUZU_HELPER_DLL_IMPORT
26#endif
27#endif
28#endif
29
30#ifndef KUZU_DEPRECATED
31#define KUZU_DEPRECATED KUZU_HELPER_DEPRECATED
32#endif
33
34#ifndef KUZU_DEPRECATED_EXPORT
35#define KUZU_DEPRECATED_EXPORT KUZU_API KUZU_DEPRECATED
36#endif