File: Export.hpp

package info (click to toggle)
qnodeeditor 2.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,144 kB
  • sloc: cpp: 8,823; makefile: 3
file content (44 lines) | stat: -rw-r--r-- 1,604 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#include "Compiler.hpp"
#include "OperatingSystem.hpp"
#ifdef NODE_EDITOR_PLATFORM_WINDOWS
    #define NODE_EDITOR_EXPORT __declspec(dllexport)
    #define NODE_EDITOR_IMPORT __declspec(dllimport)
    #define NODE_EDITOR_LOCAL
#elif NODE_EDITOR_COMPILER_GNU_VERSION_MAJOR >= 4 || defined(NODE_EDITOR_COMPILER_CLANG)
    #define NODE_EDITOR_EXPORT __attribute__((visibility("default")))
    #define NODE_EDITOR_IMPORT __attribute__((visibility("default")))
    #define NODE_EDITOR_LOCAL __attribute__((visibility("hidden")))
#else
    #define NODE_EDITOR_EXPORT
    #define NODE_EDITOR_IMPORT
    #define NODE_EDITOR_LOCAL
#endif
#ifdef __cplusplus
    #define NODE_EDITOR_DEMANGLED extern "C"
#else
    #define NODE_EDITOR_DEMANGLED
#endif
#if defined(NODE_EDITOR_SHARED) && !defined(NODE_EDITOR_STATIC)
    #ifdef NODE_EDITOR_EXPORTS
        #define NODE_EDITOR_PUBLIC NODE_EDITOR_EXPORT
    #else
        #define NODE_EDITOR_PUBLIC NODE_EDITOR_IMPORT
    #endif
    #define NODE_EDITOR_PRIVATE NODE_EDITOR_LOCAL
#elif !defined(NODE_EDITOR_SHARED) && defined(NODE_EDITOR_STATIC)
    #define NODE_EDITOR_PUBLIC
    #define NODE_EDITOR_PRIVATE
#elif defined(NODE_EDITOR_SHARED) && defined(NODE_EDITOR_STATIC)
    #ifdef NODE_EDITOR_EXPORTS
        #error "Cannot build as shared and static simultaneously."
    #else
        #error "Cannot link against shared and static simultaneously."
    #endif
#else
    #ifdef NODE_EDITOR_EXPORTS
        #error "Choose whether to build as shared or static."
    #else
        #error "Choose whether to link against shared or static."
    #endif
#endif