feat: godot-engine-source-4.3-stable
This commit is contained in:
parent
c59a7dcade
commit
7125d019b5
11149 changed files with 5070401 additions and 0 deletions
38
engine/thirdparty/clipper2/patches/clipper2-exceptions.patch
vendored
Normal file
38
engine/thirdparty/clipper2/patches/clipper2-exceptions.patch
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
diff --git a/thirdparty/clipper2/include/clipper2/clipper.core.h b/thirdparty/clipper2/include/clipper2/clipper.core.h
|
||||
index b3dddeeaa2..a77cdad5f4 100644
|
||||
--- a/thirdparty/clipper2/include/clipper2/clipper.core.h
|
||||
+++ b/thirdparty/clipper2/include/clipper2/clipper.core.h
|
||||
@@ -21,6 +21,8 @@
|
||||
#include <numeric>
|
||||
#include "clipper2/clipper.version.h"
|
||||
|
||||
+#define CLIPPER2_THROW(exception) std::abort()
|
||||
+
|
||||
namespace Clipper2Lib
|
||||
{
|
||||
|
||||
@@ -78,18 +80,18 @@ namespace Clipper2Lib
|
||||
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));
|
||||
case undefined_error_i:
|
||||
- throw Clipper2Exception(undefined_error);
|
||||
+ CLIPPER2_THROW(Clipper2Exception(undefined_error));
|
||||
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
|
||||
}
|
||||
|
||||
22
engine/thirdparty/clipper2/patches/gcc14-warning.patch
vendored
Normal file
22
engine/thirdparty/clipper2/patches/gcc14-warning.patch
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
diff --git a/thirdparty/clipper2/include/clipper2/clipper.core.h b/thirdparty/clipper2/include/clipper2/clipper.core.h
|
||||
index a77cdad5f4..0de7c3720e 100644
|
||||
--- a/thirdparty/clipper2/include/clipper2/clipper.core.h
|
||||
+++ b/thirdparty/clipper2/include/clipper2/clipper.core.h
|
||||
@@ -138,7 +138,7 @@ namespace Clipper2Lib
|
||||
}
|
||||
|
||||
template <typename T2>
|
||||
- explicit Point<T>(const Point<T2>& p)
|
||||
+ explicit Point(const Point<T2>& p)
|
||||
{
|
||||
Init(p.x, p.y, p.z);
|
||||
}
|
||||
@@ -180,7 +180,7 @@ namespace Clipper2Lib
|
||||
Point(const T2 x_, const T2 y_) { Init(x_, y_); }
|
||||
|
||||
template <typename T2>
|
||||
- explicit Point<T>(const Point<T2>& p) { Init(p.x, p.y); }
|
||||
+ explicit Point(const Point<T2>& p) { Init(p.x, p.y); }
|
||||
|
||||
Point operator * (const double scale) const
|
||||
{
|
||||
Loading…
Add table
Add a link
Reference in a new issue