vivox-sdk-node 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,83 @@
1
+ /* Copyright (c) 2019 Unity Technologies.
2
+ *
3
+ * This software is subject to, and made available under, the Unity Terms of Service (see Unity Terms of Service).
4
+ * Your use of this software constitutes your acceptance of such terms.
5
+
6
+ * Unless expressly provided otherwise, the software under this license is made available strictly on an "AS IS" BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
7
+ * Please review the Terms of Service for details on these and other terms and conditions.”
8
+ */
9
+ #pragma once
10
+
11
+ # define _VX_STR(x) #x
12
+ # define VX_STR(x) _VX_STR(x)
13
+
14
+ # if defined(VIVOXDOC) || defined(SWIG)
15
+ # define VIVOXSDK_DLLEXPORT
16
+ # else
17
+ # if defined(_MSC_VER) || defined(__ORBIS__) || defined(__PROSPERO__)
18
+ # ifdef BUILD_SHARED
19
+ # ifdef BUILDING_VIVOXSDK
20
+ # define VIVOXSDK_DLLEXPORT __declspec(dllexport)
21
+ # else
22
+ # define VIVOXSDK_DLLEXPORT __declspec(dllimport)
23
+ # endif
24
+ # else
25
+ # define VIVOXSDK_DLLEXPORT
26
+ # endif
27
+ # else
28
+ # define VIVOXSDK_DLLEXPORT __attribute__ ((visibility("default")))
29
+ # endif
30
+ # endif
31
+
32
+ # if defined(__GNUC__)
33
+ # define _VX_DO_PRAGMA(x) _Pragma(#x)
34
+ # define VX_DEPRECATED_IGNORE_BEGIN() \
35
+ _VX_DO_PRAGMA(clang diagnostic push) \
36
+ _VX_DO_PRAGMA(clang diagnostic ignored "-Wdeprecated-declarations") \
37
+ _VX_DO_PRAGMA(clang diagnostic ignored "-W#pragma-messages")
38
+ # define VX_DEPRECATED_IGNORE_END() \
39
+ _VX_DO_PRAGMA(clang diagnostic pop)
40
+
41
+ # elif defined(_MSC_VER)
42
+ # define _VX_DO_PRAGMA(x) __pragma(x)
43
+ # define VX_DEPRECATED_IGNORE_BEGIN() \
44
+ _VX_DO_PRAGMA(warning(push)) \
45
+ _VX_DO_PRAGMA(warning(disable: 4995 4996))
46
+ # define VX_DEPRECATED_IGNORE_END() \
47
+ _VX_DO_PRAGMA(warning(pop))
48
+
49
+ # else
50
+ # define _VX_DO_PRAGMA(x)
51
+ # define VX_DEPRECATED_IGNORE_BEGIN()
52
+ # define VX_DEPRECATED_IGNORE_END()
53
+ # endif
54
+
55
+ # if defined(__GNUC__)
56
+ # define VX_DEPRECATED(since) __attribute__ ((deprecated("Since "#since)))
57
+ # define VX_DEPRECATED_FOR(since, replacement) __attribute__ ((deprecated("Since "#since "; use "#replacement)))
58
+ # define VX_DEPRECATED_ENUM_GCC(symbol, since) symbol VX_DEPRECATED(since)
59
+ # define VX_DEPRECATED_ENUM_MSC(symbol)
60
+
61
+ # elif defined(_MSC_VER)
62
+ # define VX_DEPRECATED(since) __declspec(deprecated("Since "#since))
63
+ # define VX_DEPRECATED_FOR(since, replacement) __declspec(deprecated("Since "#since "; use "#replacement))
64
+ # define VX_DEPRECATED_ENUM_GCC(symbol, since) symbol
65
+ # define VX_DEPRECATED_ENUM_MSC(symbol) __pragma(deprecated(symbol))
66
+
67
+ # else
68
+ # pragma message("WARNING: VX_DEPRECATED is not implemented for this compiler")
69
+ # define VX_DEPRECATED(since)
70
+ # define VX_DEPRECATED_FOR(since, replacement)
71
+ # define VX_DEPRECATED_ENUM_GCC(symbol, since) symbol
72
+ # define VX_DEPRECATED_ENUM_MSC(symbol)
73
+ # endif
74
+
75
+ # if defined(__GNUC__)
76
+ # define VX_DEPRECATED_MACRO(name, since) _VX_DO_PRAGMA(message("Warning: '" _VX_STR(name) "' is deprecated: Since " VX_STR(since)))
77
+
78
+ # elif defined(_MSC_VER)
79
+ # define VX_DEPRECATED_MACRO(name, since) _VX_DO_PRAGMA(message(__FILE__ "(" VX_STR(__LINE__) "): warning: '" _VX_STR(name) "' is deprecated: Since " VX_STR(since)))
80
+
81
+ # else
82
+ # define VX_DEPRECATED_MACRO(name, since) name
83
+ # endif