svMultiPhysics
Loading...
Searching...
No Matches
SimVascular.h
1// SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.
2// SPDX-License-Identifier: BSD-3-Clause
3
4#ifndef SIMVASCULAR_H
5
6#define CV_OK 1
7#define CV_ERROR 0
8
9/* true / false don't seem to be defined on linux */
10#ifndef WIN32
11#ifndef TRUE
12#define TRUE 1
13#endif
14#ifndef FALSE
15#define FALSE 0
16#endif
17#endif
18
19#ifdef WINDOWS
20 #ifndef SV_STATIC_LINK
21 #define SV_DLL_EXPORT __declspec(dllexport)
22 #define SV_DLL_IMPORT __declspec(dllimport)
23 #else
24 #define SV_DLL_EXPORT
25 #define SV_DLL_IMPORT
26 #endif
27#else
28 #define SV_DLL_EXPORT
29 #define SV_DLL_IMPORT
30#endif
31
32#include "simvascular_version.h"
33#include "simvascular_options.h"
34
35#ifdef SV_EXPORT_UTILS
36 #undef SV_EXPORT_UTILS
37#endif
38#ifdef SV_EXPORT_UTILS_COMPILE
39 #define SV_EXPORT_UTILS SV_DLL_EXPORT
40#else
41 #define SV_EXPORT_UTILS SV_DLL_IMPORT
42#endif
43
44#ifdef SV_EXPORT_GLOBALS
45 #undef SV_EXPORT_GLOBALS
46#endif
47#ifdef SV_EXPORT_GLOBALS_COMPILE
48 #define SV_EXPORT_GLOBALS SV_DLL_EXPORT
49#else
50 #define SV_EXPORT_GLOBALS SV_DLL_IMPORT
51#endif
52
53#ifdef SV_EXPORT_REPOSITORY
54 #undef SV_EXPORT_REPOSITORY
55#endif
56#ifdef SV_EXPORT_REPOSITORY_COMPILE
57 #define SV_EXPORT_REPOSITORY SV_DLL_EXPORT
58#else
59 #define SV_EXPORT_REPOSITORY SV_DLL_IMPORT
60#endif
61
62#ifdef SV_EXPORT_SYSGEOM
63 #undef SV_EXPORT_SYSGEOM
64#endif
65#ifdef SV_EXPORT_SYSGEOM_COMPILE
66 #define SV_EXPORT_SYSGEOM SV_DLL_EXPORT
67#else
68 #define SV_EXPORT_SYSGEOM SV_DLL_IMPORT
69#endif
70
71#ifdef SV_EXPORT_IMAGE
72 #undef SV_EXPORT_IMAGE
73#endif
74#ifdef SV_EXPORT_IMAGE_COMPILE
75 #define SV_EXPORT_IMAGE SV_DLL_EXPORT
76#else
77 #define SV_EXPORT_IMAGE SV_DLL_IMPORT
78#endif
79
80#ifdef SV_EXPORT_TCLPYTHON
81 #undef SV_EXPORT_TCLPYTHON
82#endif
83#ifdef SV_EXPORT_TCLPYTHON_COMPILE
84 #define SV_EXPORT_TCLPYTHON SV_DLL_EXPORT
85#else
86 #define SV_EXPORT_TCLPYTHON SV_DLL_IMPORT
87#endif
88
89#ifdef SV_EXPORT_POST
90 #undef SV_EXPORT_POST
91#endif
92#ifdef SV_EXPORT_POST_COMPILE
93 #define SV_EXPORT_POST SV_DLL_EXPORT
94#else
95 #define SV_EXPORT_POST SV_DLL_IMPORT
96#endif
97
98#ifdef SV_EXPORT_LSET
99 #undef SV_EXPORT_LSET
100#endif
101#ifdef SV_EXPORT_LSET_COMPILE
102 #define SV_EXPORT_LSET SV_DLL_EXPORT
103#else
104 #define SV_EXPORT_LSET SV_DLL_IMPORT
105#endif
106
107#ifdef SV_EXPORT_SOLID
108 #undef SV_EXPORT_SOLID
109#endif
110#ifdef SV_EXPORT_SOLID_COMPILE
111 #define SV_EXPORT_SOLID SV_DLL_EXPORT
112#else
113 #define SV_EXPORT_SOLID SV_DLL_IMPORT
114#endif
115
116#ifdef SV_EXPORT_DISCRETE
117 #undef SV_EXPORT_DISCRETE
118#endif
119#ifdef SV_EXPORT_DISCRETE_COMPILE
120 #define SV_EXPORT_DISCRETE SV_DLL_EXPORT
121#else
122 #define SV_EXPORT_DISCRETE SV_DLL_IMPORT
123#endif
124
125#ifdef SV_EXPORT_MESHSIM_SOLID
126 #undef SV_EXPORT_MESHSIM_SOLID
127#endif
128#ifdef SV_EXPORT_MESHSIM_SOLID_COMPILE
129 #define SV_EXPORT_MESHSIM_SOLID SV_DLL_EXPORT
130#else
131 #define SV_EXPORT_MESHSIM_SOLID SV_DLL_IMPORT
132#endif
133
134#ifdef SV_EXPORT_OPENCASCADE
135 #undef SV_EXPORT_OPENCASCADE
136#endif
137#ifdef SV_EXPORT_OPENCASCADE_COMPILE
138 #define SV_EXPORT_OPENCASCADE SV_DLL_EXPORT
139#else
140 #define SV_EXPORT_OPENCASCADE SV_DLL_IMPORT
141#endif
142
143#ifdef SV_EXPORT_POLYDATASOLID
144 #undef SV_EXPORT_POLYDATASOLID
145#endif
146#ifdef SV_EXPORT_POLYDATASOLID_COMPILE
147 #define SV_EXPORT_POLYDATASOLID SV_DLL_EXPORT
148#else
149 #define SV_EXPORT_POLYDATASOLID SV_DLL_IMPORT
150#endif
151
152#ifdef SV_EXPORT_ADAPTOR
153 #undef SV_EXPORT_ADAPTOR
154#endif
155#ifdef SV_EXPORT_ADAPTOR_COMPILE
156 #define SV_EXPORT_ADAPTOR SV_DLL_EXPORT
157#else
158 #define SV_EXPORT_ADAPTOR SV_DLL_IMPORT
159#endif
160
161#ifdef SV_EXPORT_MESH
162 #undef SV_EXPORT_MESH
163#endif
164#ifdef SV_EXPORT_MESH_COMPILE
165 #define SV_EXPORT_MESH SV_DLL_EXPORT
166#else
167 #define SV_EXPORT_MESH SV_DLL_IMPORT
168#endif
169
170#ifdef SV_EXPORT_MESHSIM_ADAPTOR
171 #undef SV_EXPORT_MESHSIM_ADAPTOR
172#endif
173#ifdef SV_EXPORT_MESHSIM_ADAPTOR_COMPILE
174 #define SV_EXPORT_MESHSIM_ADAPTOR SV_DLL_EXPORT
175#else
176 #define SV_EXPORT_MESHSIM_ADAPTOR SV_DLL_IMPORT
177#endif
178
179#ifdef SV_EXPORT_MESHSIM_MESH
180 #undef SV_EXPORT_MESHSIM_MESH
181#endif
182#ifdef SV_EXPORT_MESHSIM_MESH_COMPILE
183 #define SV_EXPORT_MESHSIM_MESH SV_DLL_EXPORT
184#else
185 #define SV_EXPORT_MESHSIM_MESH SV_DLL_IMPORT
186#endif
187
188#ifdef SV_EXPORT_MMG
189 #undef SV_EXPORT_MMG
190#endif
191#ifdef SV_EXPORT_MMG_COMPILE
192 #define SV_EXPORT_MMG SV_DLL_EXPORT
193#else
194 #define SV_EXPORT_MMG SV_DLL_IMPORT
195#endif
196
197#ifdef SV_EXPORT_TET_ADAPTOR
198 #undef SV_EXPORT_TET_ADAPTOR
199#endif
200#ifdef SV_EXPORT_TET_ADAPTOR_COMPILE
201 #define SV_EXPORT_TET_ADAPTOR SV_DLL_EXPORT
202#else
203 #define SV_EXPORT_TET_ADAPTOR SV_DLL_IMPORT
204#endif
205
206#ifdef SV_EXPORT_TETGEN_MESH
207 #undef SV_EXPORT_TETGEN_MESH
208#endif
209#ifdef SV_EXPORT_TETGEN_MESH_COMPILE
210 #define SV_EXPORT_TETGEN_MESH SV_DLL_EXPORT
211#else
212 #define SV_EXPORT_TETGEN_MESH SV_DLL_IMPORT
213#endif
214
215#ifdef SV_EXPORT_SEGITK
216 #undef SV_EXPORT_SEGITK
217#endif
218#ifdef SV_EXPORT_SEGITK_COMPILE
219 #define SV_EXPORT_SEGITK SV_DLL_EXPORT
220#else
221 #define SV_EXPORT_SEGITK SV_DLL_IMPORT
222#endif
223
224#ifdef SV_EXPORT_SEGITKUTILS
225 #undef SV_EXPORT_SEGITKUTILS
226#endif
227#ifdef SV_EXPORT_SEGITKUTILS_COMPILE
228 #define SV_EXPORT_SEGITKUTILS SV_DLL_EXPORT
229#else
230 #define SV_EXPORT_SEGITKUTILS SV_DLL_IMPORT
231#endif
232
233#ifdef SV_EXPORT_PARASOLID
234 #undef SV_EXPORT_PARASOLID
235#endif
236#ifdef SV_EXPORT_PARASOLID_COMPILE
237 #define SV_EXPORT_PARASOLID SV_DLL_EXPORT
238#else
239 #define SV_EXPORT_PARASOLID SV_DLL_IMPORT
240#endif
241
242#ifdef SV_EXPORT_TCLPYTHON
243 #undef SV_EXPORT_TCLPYTHON
244#endif
245#ifdef SV_EXPORT_TCLPYTHON_COMPILE
246 #define SV_EXPORT_TCLPYTHON SV_DLL_EXPORT
247#else
248 #define SV_EXPORT_TCLPYTHON SV_DLL_IMPORT
249#endif
250
251#ifdef SVQTMAINWINDOW_EXPORT
252 #undef SVQTMAINWINDOW_EXPORT
253#endif
254#ifdef SVQTMAINWINDOW_EXPORT_COMPILE
255 #define SVQTMAINWINDOW_EXPORT SV_DLL_EXPORT
256#else
257 #define SVQTMAINWINDOW_EXPORT SV_DLL_IMPORT
258#endif
259
260#endif /* SIMVASCULAR_H */
261