fix compilation of not-debug

supermerill/SuperSlicer#1425
This commit is contained in:
remi durand 2021-07-31 17:37:54 +02:00
parent 7f1f3e9ec7
commit 6a964d8107

View File

@ -963,6 +963,7 @@ static void slice_region_by_vertical_lines(const FillRectilinear* filler, std::v
} }
} }
#ifdef SLIC3R_DEBUG
try { try {
// Verify the segments. If something is wrong, give up. // Verify the segments. If something is wrong, give up.
#define ASSERT_THROW(CONDITION) do { assert(CONDITION); if (! (CONDITION)) throw InfillFailedException(); } while (0) #define ASSERT_THROW(CONDITION) do { assert(CONDITION); if (! (CONDITION)) throw InfillFailedException(); } while (0)
@ -1034,6 +1035,7 @@ static void slice_region_by_vertical_lines(const FillRectilinear* filler, std::v
throw; throw;
} }
#undef ASSERT_THROW #undef ASSERT_THROW
#endif //SLIC3R_DEBUG
} }