alpaqa no-casadi-dep
Nonconvex constrained optimization
Loading...
Searching...
No Matches
casadi-loader-export.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <alpaqa/casadi-loader-export.h>
4
5#ifdef _WIN32
6#define CASADI_LOADER_EXPORT_EXTERN_TEMPLATE(strcls, name, ...) \
7 extern template strcls name<__VA_ARGS__>
8#define CASADI_LOADER_EXPORT_TEMPLATE(strcls, name, ...) \
9 template strcls CASADI_LOADER_EXPORT name<__VA_ARGS__>
10#else
11#define CASADI_LOADER_EXPORT_EXTERN_TEMPLATE(strcls, name, ...) \
12 extern template strcls CASADI_LOADER_EXPORT name<__VA_ARGS__>
13#define CASADI_LOADER_EXPORT_TEMPLATE(strcls, name, ...) \
14 template strcls name<__VA_ARGS__>
15#endif