alpaqa pi-pico
Nonconvex constrained optimization
Loading...
Searching...
No Matches
lbfgspp-adapter-export.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <alpaqa/lbfgspp-adapter-export.h>
4
5#ifndef DOXYGEN
6
7#ifdef _WIN32
8#define ALPAQA_LBFGSPP_EXPORT_EXTERN_TEMPLATE(strcls, name, ...) \
9 extern template strcls name<__VA_ARGS__>
10#define ALPAQA_LBFGSPP_EXPORT_TEMPLATE(strcls, name, ...) \
11 template strcls LBFGSPP_ADAPTER_EXPORT name<__VA_ARGS__>
12#else
13#define ALPAQA_LBFGSPP_EXPORT_EXTERN_TEMPLATE(strcls, name, ...) \
14 extern template strcls LBFGSPP_ADAPTER_EXPORT name<__VA_ARGS__>
15#define ALPAQA_LBFGSPP_EXPORT_TEMPLATE(strcls, name, ...) \
16 template strcls name<__VA_ARGS__>
17#endif
18
19#else // DOXYGEN
20
21#define ALPAQA_LBFGSPP_EXPORT_EXTERN_TEMPLATE(...)
22#define ALPAQA_LBFGSPP_EXPORT_TEMPLATE(...)
23
24#endif // DOXYGEN