2023-08-17 18:32:30 +02:00
|
|
|
diff --git a/thirdparty/clipper2/include/clipper2/clipper.core.h b/thirdparty/clipper2/include/clipper2/clipper.core.h
|
2024-03-01 00:42:06 +01:00
|
|
|
index b3dddeeaa2..a77cdad5f4 100644
|
2023-08-17 18:32:30 +02:00
|
|
|
--- a/thirdparty/clipper2/include/clipper2/clipper.core.h
|
|
|
|
+++ b/thirdparty/clipper2/include/clipper2/clipper.core.h
|
2024-03-01 00:42:06 +01:00
|
|
|
@@ -21,6 +21,8 @@
|
2023-08-17 18:32:30 +02:00
|
|
|
#include <numeric>
|
2024-03-01 00:42:06 +01:00
|
|
|
#include "clipper2/clipper.version.h"
|
2023-08-17 18:32:30 +02:00
|
|
|
|
|
|
|
+#define CLIPPER2_THROW(exception) std::abort()
|
|
|
|
+
|
|
|
|
namespace Clipper2Lib
|
|
|
|
{
|
|
|
|
|
2024-03-01 00:42:06 +01:00
|
|
|
@@ -78,18 +80,18 @@ namespace Clipper2Lib
|
2023-08-17 18:32:30 +02:00
|
|
|
switch (error_code)
|
|
|
|
{
|
|
|
|
case precision_error_i:
|
|
|
|
- throw Clipper2Exception(precision_error);
|
|
|
|
+ CLIPPER2_THROW(Clipper2Exception(precision_error));
|
|
|
|
case scale_error_i:
|
|
|
|
- throw Clipper2Exception(scale_error);
|
|
|
|
+ CLIPPER2_THROW(Clipper2Exception(scale_error));
|
|
|
|
case non_pair_error_i:
|
|
|
|
- throw Clipper2Exception(non_pair_error);
|
|
|
|
+ CLIPPER2_THROW(Clipper2Exception(non_pair_error));
|
2024-03-01 00:42:06 +01:00
|
|
|
case undefined_error_i:
|
|
|
|
- throw Clipper2Exception(undefined_error);
|
|
|
|
+ CLIPPER2_THROW(Clipper2Exception(undefined_error));
|
2023-08-17 18:32:30 +02:00
|
|
|
case range_error_i:
|
|
|
|
- throw Clipper2Exception(range_error);
|
|
|
|
+ CLIPPER2_THROW(Clipper2Exception(range_error));
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
- ++error_code; // only to stop compiler warning
|
|
|
|
+ if(error_code) {}; // only to stop compiler 'parameter not used' warning
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|