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