This repository was archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMacros.h
More file actions
66 lines (54 loc) · 1.36 KB
/
Macros.h
File metadata and controls
66 lines (54 loc) · 1.36 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*****************************************************************//**
* \file Macros.h
* \brief Directly Musical Data Access library for VST3 with JUCE.
*
* \author WuChang
* \email 31423836@qq.com
* \date Jan 2024
* \version 1.2.3
* \license MIT License
*********************************************************************/
#pragma once
/**
* TUID of the context object.
*/
#define DMDA_HANDLE_ID_VST3 "CAFEBABEDEADBEEF"
#ifndef DMDA_PLUGIN
#define DMDA_PLUGIN 0
#endif // !DMDA_PLUGIN
#if defined (__clang__)
#define DMDA_CLANG 1
#elif defined (__GNUC__)
#define DMDA_GCC 1
#elif defined (_MSC_VER)
#define DMDA_MSVC 1
#else
#error Unknown cpp compiler
#endif
#if DMDA_MSVC
#define DMDA_EXPORT __declspec(dllexport)
#define DMDA_IMPORT __declspec(dllimport)
#define DMDA_CALL _cdecl
#endif
#if DMDA_CLANG
#define DMDA_EXPORT __attribute__((visibility("default")))
#define DMDA_IMPORT __attribute__((visibility("default")))
#define DMDA_CALL
#endif
#if DMDA_GCC
#define DMDA_EXPORT __attribute__((visibility("default")))
#define DMDA_IMPORT __attribute__((visibility("default")))
#define DMDA_CALL
#endif
#if !(DMDA_MSVC || DMDA_CLANG || DMDA_GCC)
#define DMDA_EXPORT
#define DMDA_IMPORT
#define DMDA_CALL
#endif
#if DMDA_DLL_BUILD
#define DMDA_API DMDA_EXPORT
#elif DMDA_DLL
#define DMDA_API DMDA_IMPORT
#else
#define DMDA_API
#endif // DMDA_DLL_BUILD