alpaqa dll
Nonconvex constrained optimization
Loading...
Searching...
No Matches
export.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <alpaqa/export.h>
4
5#ifndef DOXYGEN
6
7#ifdef _WIN32
8#define ALPAQA_EXPORT_EXTERN_TEMPLATE(strcls, name, ...) \
9 extern template strcls name<__VA_ARGS__>
10#define ALPAQA_EXPORT_TEMPLATE(strcls, name, ...) \
11 template strcls ALPAQA_EXPORT name<__VA_ARGS__>
12#define ALPAQA_EXPORT_STATIC /* For static functions in an exported class */
13#define ALPAQA_EXPORT_EXCEPTION
14#else
15#define ALPAQA_EXPORT_EXTERN_TEMPLATE(strcls, name, ...) \
16extern template strcls ALPAQA_EXPORT name<__VA_ARGS__>
17#define ALPAQA_EXPORT_TEMPLATE(strcls, name, ...) \
18template strcls name<__VA_ARGS__>
19#define ALPAQA_EXPORT_STATIC ALPAQA_EXPORT
20#define ALPAQA_EXPORT_EXCEPTION ALPAQA_EXPORT
21#endif
22
23#else // DOXYGEN
24
25#define ALPAQA_EXPORT_EXTERN_TEMPLATE(...)
26#define ALPAQA_EXPORT_TEMPLATE(...)
27
28#endif // DOXYGEN