Commit Graph

1076 Commits (d1aeba771a79953a0b004fba271c558234adfd83)

Author SHA1 Message Date
mashumafi a8be6aa8dd Move allocator to after memdelete 2023-01-29 23:29:31 -05:00
Rémi Verschelde 0f3a0913f1
Merge pull request #1018 from vnen/typed-array-constructor
Support typed array default values in extension API
2023-01-28 19:43:04 +01:00
George Marques 1c625befa3
Support typed array default values in extension API
The API JSON has changed syntax for default values of typed arrays. This
detects the new format and use initializer lists (currently empty since
the TypedArray class does not support initializer list construction and
default values are always empty arrays).
2023-01-28 14:01:27 -03:00
George Marques 64be8c1507
Use std type traits instead of intrinsics
This removes warnings and mimics what has been done in Godot itself.
2023-01-28 13:59:34 -03:00
Rémi Verschelde a8d8485060
gdextension: Sync with upstream commit 518b9e5801a19229805fe837d7d0cf92920ad413 (4.0-beta16) 2023-01-27 17:02:22 +01:00
Rémi Verschelde ae1afba8d1
gdextension: Sync with upstream commit 4fa6edc888cfacd5346bf08afa14b5f5a9bd6d0c (4.0-beta15) 2023-01-25 08:34:39 +01:00
Mikael Hermansson 6b92eda819 Added missing `string.hpp` include in `transform2d.cpp` 2023-01-22 17:35:24 +01:00
Mikael Hermansson d174b47e51 Update error macros to match core 2023-01-22 14:24:57 +01:00
Rémi Verschelde 1909113889
gdextension: Sync with upstream commit 28a24639c3c6a95b5b9828f5f02bf0dc2f5ce54b (4.0-beta14) 2023-01-20 23:03:13 +01:00
Rémi Verschelde 00b29630ba
Merge pull request #1003 from akien-mga/fix-sign-0
Change behavior of Math::sign to match Godot builtin
2023-01-20 23:02:13 +01:00
Дмитрий Сальников 6528c7177f Fixed variant casting for enum and bitfield 2023-01-20 21:10:03 +03:00
Fabio Alessandrelli 860182fe01
Merge pull request #1006 from asmaloney/fix-sign-comparisons-class_db
Fix sign comparison warnings in class_db.cpp
2023-01-19 16:11:33 +01:00
Fabio Alessandrelli 12c6099737
Merge pull request #1005 from asmaloney/fix-sign-comparisons
Fix some sign comparison warnings
2023-01-19 15:50:06 +01:00
Andy Maloney 1ae0147aad Fix sign comparison warnings in class_db.cpp
Part of #999
2023-01-19 08:30:08 -05:00
Andy Maloney e6b636cc51 Fix sign comparison warnings in method_bind.hpp
Part of #999
2023-01-19 08:26:02 -05:00
Rémi Verschelde 2a9b21e46a
Merge pull request #1004 from asmaloney/remove-unused-ucaps
Remove unused ucaps header
2023-01-19 13:55:29 +01:00
Rémi Verschelde 07e2e20f7b
Merge pull request #939 from bruvzg/gde_low_level_funcs_cpp
Expose some low level functions and String operators.
2023-01-19 13:55:24 +01:00
Rémi Verschelde 04731d2b78
Merge pull request #965 from WildRackoon/fix-GDCLASS-fwddeclaration
Fix GDCLASS needs explicit ClassDB fwd declaration
2023-01-19 13:55:14 +01:00
Rémi Verschelde 952bde1db3
Merge pull request #1002 from asmaloney/cmake-system-includes
{cmake} Add GODOT_CPP_SYSTEM_HEADERS option to mark includes as SYSTEM
2023-01-19 13:55:08 +01:00
Rémi Verschelde b0f9ca7918
Merge pull request #808 from Calinou/readme-add-branch-warning
Add a more prominent warning about repository branches in README
2023-01-19 13:55:01 +01:00
Fabio Alessandrelli 2eb375e486
Merge pull request #998 from asmaloney/fix-virtual-destructor
"Wrapped" has virtual functions so it should have a virtual destructor.
2023-01-19 13:27:42 +01:00
Andy Maloney 67be0c95e1 Remove unused ucaps header
These static structs were being included in every file string.hpp was included in...

Part of #999
2023-01-19 07:15:40 -05:00
bruvzg abca497b72
Expose some low level functions and String operators. 2023-01-19 13:12:21 +02:00
Andy Maloney 5dd2928790 "Wrapped" has virtual functions so it should have a virtual destructor.
Deleting an object through a pointer to a base class is undefined behaviour unless the destructor in the base class is virtual.
2023-01-19 05:57:17 -05:00
Fabio Alessandrelli 69b525494b
Merge pull request #1001 from Faless/ext/basis_abs
Fix Basis::scaled_orthogonal using incorrect abs function.
2023-01-19 10:16:51 +01:00
Fabio Alessandrelli 3d74e661b7
Merge pull request #1000 from Faless/ext/variant_can_convert
Fix Variant::can_convert[_strict] returning gibberish.
2023-01-19 10:16:10 +01:00
Erik Abair d3f17c1dca
Change behavior of Math::sign to match Godot builtin
Fixes #551.
2023-01-19 09:47:13 +01:00
Andy Maloney 1351710a18 {cmake} Add GODOT_CPP_SYSTEM_HEADERS option to mark includes as SYSTEM
From the cmake docs:

"This may have effects such as suppressing warnings or skipping the contained headers in dependency calculations (see compiler documentation). Additionally, system include directories are searched after normal include directories regardless of the order specified."

Addresses part of #999
2023-01-18 21:15:34 -05:00
Fabio Alessandrelli 72a7c61750 Fix Basis::scaled_orthogonal using incorrect abs function. 2023-01-19 02:53:53 +01:00
Fabio Alessandrelli d64d97cb17 Fix Variant::can_convert[_strict] returning gibberish.
An uninitialized value was being returned instead of the function return
value.
2023-01-19 02:17:53 +01:00
Rémi Verschelde cf3d995e8c
Merge pull request #997 from asmaloney/fix-shadow-eulerorder
Fix a shadowed enum (EulerOrder)
2023-01-18 18:36:21 +01:00
Rémi Verschelde 0dfe0d0166
Merge pull request #983 from rburing/variant_to_from_objectid
Add conversions between `Variant` and `ObjectID`
2023-01-18 11:41:57 +01:00
Andy Maloney dbd43ac107 Fix a shadowed enum (EulerOrder)
Use the global constants.
2023-01-17 18:38:24 -05:00
Rémi Verschelde cb15429e4a
gdextension: Sync with upstream commit caacade569eb7a541aaa7a8cdc3eedffca1422d9 (4.0-beta13) 2023-01-17 18:52:05 +01:00
Rémi Verschelde 6f2bba3630
Merge pull request #991 from asmaloney/fix-spelling
Fix spelling in demo script
2023-01-17 11:32:58 +01:00
Rémi Verschelde b21026e061
Merge pull request #950 from DmitriySalnikov/typed-ptr-method-call-support-and-ref-class-name
Added property info for Object's and Ref's and ported the implementation of the `check` method
2023-01-17 11:31:54 +01:00
Rémi Verschelde 151ea35c5f
gdextension: Sync with upstream commit 3c9bf4bc210a8e6a208f30ca59de4d4d7e18c04d (4.0-beta12) 2023-01-13 17:07:21 +01:00
Дмитрий Сальников 0c6e26dabe Added property info for ptr and ref + ported the implementation of the `check` method 2023-01-13 15:56:51 +03:00
Andy Maloney c721b62c2f Fix spelling in demo script 2023-01-10 12:02:46 -05:00
Rémi Verschelde 512ec5b236
Merge pull request #990 from akien-mga/ci-clang-format-15
CI: Use clang-format 15
2023-01-10 17:36:50 +01:00
Rémi Verschelde 51c79565e0
CI: Use clang-format 15
Seems like there's a slight inconsistency for the formatting of the
`delete[](pointer)` syntax.
2023-01-10 16:24:14 +01:00
Rémi Verschelde 734d9ef092
gdextension: Sync with upstream commit 91713ced81792b10fdc9367b7f355738e5d52777 (4.0-beta11) 2023-01-10 16:15:31 +01:00
Rémi Verschelde 931f1a3f34
Sync license copyright with upstream GH-70885 2023-01-10 16:15:31 +01:00
Rémi Verschelde 2b7094f342
Merge pull request #988 from rburing/precision=double
Rename `float=64` build option to `precision=double`
2023-01-10 16:09:02 +01:00
Fabio Alessandrelli 8ee9cab8f8
Merge pull request #989 from Faless/ext/4.x_objects_bind
Allow method binds to take Object subclasses as arguments
2023-01-10 14:28:26 +01:00
Fabio Alessandrelli 9fd33b5cde Allow method binds to take Object subclasses as arguments
As done in upstream Godot via GH-57205.

Add a test that ensures it works also for "gdextended" objects.
2023-01-10 12:55:41 +01:00
Rémi Verschelde 129c358a72
Merge pull request #968 from Faless/build/4.x_custom_paths
[SCons] Fix custom API file/dir relative paths.
2023-01-09 23:25:10 +01:00
Ricardo Buring 47140cdad0 Rename float=64 build option to precision=double
This makes the build system consistent with Godot again.
Also fix CMake build to define REAL_T_IS_DOUBLE when precision=double.
2023-01-09 23:22:03 +01:00
Fabio Alessandrelli 6877a0abcd [SCons] Fix custom API file/dir relative paths. 2023-01-09 21:09:49 +01:00
Rémi Verschelde 2f785c9da1
Merge pull request #987 from bruvzg/fix_enum_size
Fix enum return value size.
2023-01-07 12:20:41 +01:00