Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fintarin committed Apr 7, 2024
1 parent c773af7 commit f96adf5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 6 additions & 0 deletions include/fintamath/core/CoreUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
#include <concepts>
#include <functional>

#ifdef WIN32
#define FINTAMATH_API __declspec(dllexport)
#else
#define FINTAMATH_API
#endif

namespace fintamath {

template <typename From, typename To>
Expand Down
11 changes: 5 additions & 6 deletions include/fintamath/core/MathObjectBody.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ public: \
private: \
using Class##Parser = detail::Parser<std::unique_ptr<Class>>; \
\
static Class##Parser &getParser(); \
FINTAMATH_API static Class##Parser &getParser() { \
FINTAMATH_API static Class##Parser parser; \
return parser; \
} \
\
public: \
static auto parse(std::string str) { \
Expand All @@ -38,8 +41,4 @@ public: \
\
private:

#define FINTAMATH_PARENT_CLASS_IMPLEMENTATION(Class) \
Class::Class##Parser &Class::getParser() { \
static Class##Parser parser; \
return parser; \
}
#define FINTAMATH_PARENT_CLASS_IMPLEMENTATION(Class)

0 comments on commit f96adf5

Please sign in to comment.