Lbug 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 LBUG_HELPER_DLL_IMPORT __declspec(dllimport)
6#define LBUG_HELPER_DLL_EXPORT __declspec(dllexport)
7#define LBUG_HELPER_DLL_LOCAL
8#define LBUG_HELPER_DEPRECATED __declspec(deprecated)
9#else
10#define LBUG_HELPER_DLL_IMPORT __attribute__((visibility("default")))
11#define LBUG_HELPER_DLL_EXPORT __attribute__((visibility("default")))
12#define LBUG_HELPER_DLL_LOCAL __attribute__((visibility("hidden")))
13#define LBUG_HELPER_DEPRECATED __attribute__((__deprecated__))
14#endif
15
16#ifdef LBUG_STATIC_DEFINE
17#define LBUG_API
18#else
19#ifndef LBUG_API
20#ifdef LBUG_EXPORTS
21/* We are building this library */
22#define LBUG_API LBUG_HELPER_DLL_EXPORT
23#else
24/* We are using this library */
25#define LBUG_API LBUG_HELPER_DLL_IMPORT
26#endif
27#endif
28#endif
29
30#ifndef LBUG_DEPRECATED
31#define LBUG_DEPRECATED LBUG_HELPER_DEPRECATED
32#endif
33
34#ifndef LBUG_DEPRECATED_EXPORT
35#define LBUG_DEPRECATED_EXPORT LBUG_API LBUG_DEPRECATED
36#endif