From 023310882fb32aa8ba8617ce94f0f8707e1c6d8d Mon Sep 17 00:00:00 2001 From: bubnikv Date: Sun, 10 Apr 2016 19:07:34 +0200 Subject: [PATCH] Added a macro SLIC3R_CPPVER to indicate the C++ language version supported by the compiler. --- xs/src/libslic3r/libslic3r.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xs/src/libslic3r/libslic3r.h b/xs/src/libslic3r/libslic3r.h index eb3fb8f036..6f6e1fdb6f 100644 --- a/xs/src/libslic3r/libslic3r.h +++ b/xs/src/libslic3r/libslic3r.h @@ -36,4 +36,14 @@ using namespace Slic3r; void confess_at(const char *file, int line, const char *func, const char *pat, ...); /* End implementation of CONFESS("foo"): */ +// Which C++ version is supported? +// For example, could optimized functions with move semantics be used? +#if __cplusplus==201402L + #define SLIC3R_CPPVER 14 +#elif __cplusplus==201103L + #define SLIC3R_CPPVER 11 +#else + #define SLIC3R_CPPVER 0 +#endif + #endif