OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
openswmm_legacy_solver_export.h
Go to the documentation of this file.
1
2#ifndef EXPORT_OPENSWMMCORE_SOLVER_API_H
3#define EXPORT_OPENSWMMCORE_SOLVER_API_H
4
5#ifdef SHARED_EXPORTS_BUILT_AS_STATIC
6# define EXPORT_OPENSWMMCORE_SOLVER_API
7# define OPENSWMM_LEGACY_SOLVER_NO_EXPORT
8#else
9# ifndef EXPORT_OPENSWMMCORE_SOLVER_API
10# ifdef openswmm_legacy_engine_EXPORTS
11 /* We are building this library */
12# define EXPORT_OPENSWMMCORE_SOLVER_API __attribute__((visibility("default")))
13# else
14 /* We are using this library */
15# define EXPORT_OPENSWMMCORE_SOLVER_API __attribute__((visibility("default")))
16# endif
17# endif
18
19# ifndef OPENSWMM_LEGACY_SOLVER_NO_EXPORT
20# define OPENSWMM_LEGACY_SOLVER_NO_EXPORT __attribute__((visibility("hidden")))
21# endif
22#endif
23
24#ifndef OPENSWMM_LEGACY_SOLVER_DEPRECATED
25# define OPENSWMM_LEGACY_SOLVER_DEPRECATED __attribute__ ((__deprecated__))
26#endif
27
28#ifndef OPENSWMM_LEGACY_SOLVER_DEPRECATED_EXPORT
29# define OPENSWMM_LEGACY_SOLVER_DEPRECATED_EXPORT EXPORT_OPENSWMMCORE_SOLVER_API OPENSWMM_LEGACY_SOLVER_DEPRECATED
30#endif
31
32#ifndef OPENSWMM_LEGACY_SOLVER_DEPRECATED_NO_EXPORT
33# define OPENSWMM_LEGACY_SOLVER_DEPRECATED_NO_EXPORT OPENSWMM_LEGACY_SOLVER_NO_EXPORT OPENSWMM_LEGACY_SOLVER_DEPRECATED
34#endif
35
36/* NOLINTNEXTLINE(readability-avoid-unconditional-preprocessor-if) */
37#if 0 /* DEFINE_NO_DEPRECATED */
38# ifndef OPENSWMM_LEGACY_SOLVER_NO_DEPRECATED
39# define OPENSWMM_LEGACY_SOLVER_NO_DEPRECATED
40# endif
41#endif
42
43#endif /* EXPORT_OPENSWMMCORE_SOLVER_API_H */