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#else
14#define ALPAQA_EXPORT_EXTERN_TEMPLATE(strcls, name, ...) \
15 extern template strcls ALPAQA_EXPORT name<__VA_ARGS__>
16#define ALPAQA_EXPORT_TEMPLATE(strcls, name, ...) \
17 template strcls name<__VA_ARGS__>
18#define ALPAQA_EXPORT_STATIC ALPAQA_EXPORT
19#endif
20
21#else // DOXYGEN
22
23#define ALPAQA_EXPORT_EXTERN_TEMPLATE(...)
24#define ALPAQA_EXPORT_TEMPLATE(...)
25
26#endif // DOXYGEN