From d43ddce078d844d7592db6c4d6004f42785b1690 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Fri, 12 Nov 2021 15:08:04 +0100 Subject: [PATCH] #7293 - Do not put __FILE__ info in release mode --- src/slic3r/GUI/3DScene.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/3DScene.hpp b/src/slic3r/GUI/3DScene.hpp index 14597f22a..abf66394d 100644 --- a/src/slic3r/GUI/3DScene.hpp +++ b/src/slic3r/GUI/3DScene.hpp @@ -13,7 +13,10 @@ #include #include +#ifndef NDEBUG #define HAS_GLSAFE +#endif // NDEBUG + #ifdef HAS_GLSAFE extern void glAssertRecentCallImpl(const char *file_name, unsigned int line, const char *function_name); inline void glAssertRecentCall() { glAssertRecentCallImpl(__FILE__, __LINE__, __FUNCTION__); }