feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -1,17 +1,17 @@
|
|||
diff --git a/thirdparty/clipper2/include/clipper2/clipper.core.h b/thirdparty/clipper2/include/clipper2/clipper.core.h
|
||||
index 925c04685e..67dd731af6 100644
|
||||
index ab71aeb072..110bee4c10 100644
|
||||
--- a/thirdparty/clipper2/include/clipper2/clipper.core.h
|
||||
+++ b/thirdparty/clipper2/include/clipper2/clipper.core.h
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <optional>
|
||||
#include "clipper2/clipper.version.h"
|
||||
@@ -19,6 +19,8 @@
|
||||
#include <numeric>
|
||||
#include <cmath>
|
||||
|
||||
+#define CLIPPER2_THROW(exception) std::abort()
|
||||
+
|
||||
namespace Clipper2Lib
|
||||
{
|
||||
|
||||
@@ -79,18 +81,18 @@ namespace Clipper2Lib
|
||||
@@ -76,21 +78,21 @@ namespace Clipper2Lib
|
||||
switch (error_code)
|
||||
{
|
||||
case precision_error_i:
|
||||
|
|
@ -29,6 +29,10 @@ index 925c04685e..67dd731af6 100644
|
|||
case range_error_i:
|
||||
- throw Clipper2Exception(range_error);
|
||||
+ CLIPPER2_THROW(Clipper2Exception(range_error));
|
||||
// Should never happen, but adding this to stop a compiler warning
|
||||
default:
|
||||
- throw Clipper2Exception("Unknown error");
|
||||
+ CLIPPER2_THROW(Clipper2Exception("Unknown error"));
|
||||
}
|
||||
#else
|
||||
- ++error_code; // only to stop compiler warning
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
diff --git a/thirdparty/clipper2/include/clipper2/clipper.core.h b/thirdparty/clipper2/include/clipper2/clipper.core.h
|
||||
index 67dd731af6..dd1b873d5d 100644
|
||||
index 110bee4c10..aa003bf032 100644
|
||||
--- a/thirdparty/clipper2/include/clipper2/clipper.core.h
|
||||
+++ b/thirdparty/clipper2/include/clipper2/clipper.core.h
|
||||
@@ -695,11 +695,13 @@ namespace Clipper2Lib
|
||||
@@ -715,11 +715,13 @@ namespace Clipper2Lib
|
||||
// returns true if (and only if) a * b == c * d
|
||||
inline bool ProductsAreEqual(int64_t a, int64_t b, int64_t c, int64_t d)
|
||||
{
|
||||
|
|
@ -13,15 +13,15 @@ index 67dd731af6..dd1b873d5d 100644
|
|||
-#else
|
||||
+// Work around LLVM issue: https://github.com/llvm/llvm-project/issues/16778
|
||||
+// Details: https://github.com/godotengine/godot/pull/95964#issuecomment-2306581804
|
||||
+//#if (defined(__clang__) || defined(__GNUC__)) && UINTPTR_MAX >= UINT64_MAX
|
||||
+// const auto ab = static_cast<__int128_t>(a) * static_cast<__int128_t>(b);
|
||||
+// const auto cd = static_cast<__int128_t>(c) * static_cast<__int128_t>(d);
|
||||
+// return ab == cd;
|
||||
+//#else
|
||||
+// #if (defined(__clang__) || defined(__GNUC__)) && UINTPTR_MAX >= UINT64_MAX
|
||||
+// const auto ab = static_cast<__int128_t>(a) * static_cast<__int128_t>(b);
|
||||
+// const auto cd = static_cast<__int128_t>(c) * static_cast<__int128_t>(d);
|
||||
+// return ab == cd;
|
||||
+// #else
|
||||
// nb: unsigned values needed for calculating overflow carry
|
||||
const auto abs_a = static_cast<uint64_t>(std::abs(a));
|
||||
const auto abs_b = static_cast<uint64_t>(std::abs(b));
|
||||
@@ -714,7 +716,7 @@ namespace Clipper2Lib
|
||||
@@ -734,7 +736,7 @@ namespace Clipper2Lib
|
||||
const auto sign_cd = TriSign(c) * TriSign(d);
|
||||
|
||||
return abs_ab == abs_cd && sign_ab == sign_cd;
|
||||
Loading…
Add table
Add a link
Reference in a new issue