Skip to content

Commit

Permalink
Don't crash on release_assert on superslicer builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Nov 25, 2024
1 parent 7ce5b03 commit 535d67f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libslic3r/libslic3r.h
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,9 @@ enum class ArcFittingType {
#ifdef _RELWITHDEBINFO
#define _DEBUGINFO
inline void release_assert(bool valid) {
if (!valid)
throw new std::exception();
// superslicer variant -> don't hard crash on assert (nightly). For debug, use the slic3r variant (dev branch).
// if (!valid)
// throw new std::exception();
}
#endif
//error if release, as it's purely a debug thingy that need to be cleaned
Expand Down

0 comments on commit 535d67f

Please sign in to comment.