Commit Graph

1329 Commits (12f6eecf65df925bddc58a7cbd21401fffa9ac35)

Author SHA1 Message Date
A Thousand Ships 12f6eecf65 Make generated code mostly style compliant
(cherry picked from commit f131efb791)
2024-09-03 17:14:15 -05:00
Klaim (Joël Lamotte) deaf37120f removes warnings generated by GDCLASS usage
This change removes the warnings (unused parameters) coming from code injected by the GDCLASS macro.
Contrary to warnings coming from the normal source code which can be suppressed with most compiles by specifying the include directories of this library as external or system,
when the code is injected through a macro it is considered in the context of the user, which is the source code of user of the library.
That forces the users to modify their code to hide the warnings coming from the mandatory `GDCLASS` here.
That's why it's important to remove these warning from that specific macro and ideally any other macro that the user must use.

(cherry picked from commit 738859f49b)
2024-09-03 17:11:52 -05:00
Chris Cranford cc70884db3 Make sure `_get` and `_set` dispatch up the class hierarchy
(cherry picked from commit c77d44f3f6)
2024-09-03 17:11:10 -05:00
Joakim Stien 90e0c1515d PR comments — added doc, default 'ON' in Debug, 'OFF' in Release
(cherry picked from commit 0a078d9ec9)
2024-09-03 17:11:03 -05:00
Joakim Stien 13299e810b Added hot reload support to CMakeLists.txt
(cherry picked from commit 31179ee47c)
2024-09-03 17:10:55 -05:00
A Thousand Ships 18321318bb [CI] Upload build cache before running tests
(cherry picked from commit 76b38de01a)
2024-09-03 17:10:48 -05:00
Rémi Verschelde 806c38e189 SCons: Remove old Python 2 compat code
(cherry picked from commit 958776dfc3)
2024-09-03 17:10:40 -05:00
Fabio Alessandrelli aeb8be98ed [SCons] Add option to build without threads
This is relevant for the Web platform, where builds with and without
threads are incompatible.

(cherry picked from commit b0296bb562)
2024-09-03 17:10:30 -05:00
David Snopek 1f9a0b7171
Merge pull request #1559 from aaronfranke/4.2-fix-typed-packed-array-bind
[4.2] Fix missing MAKE_TYPED_ARRAY_INFO for Packed*Arrays
2024-08-26 10:34:43 -05:00
Aaron Franke a0d56336c3
[4.2] Fix missing MAKE_TYPED_ARRAY_INFO for Packed*Arrays 2024-08-22 21:04:51 -07:00
David Snopek d6e5286cc1
Merge pull request #1527 from dsnopek/4.2-cherrypicks-6
Cherry-picks for the godot-cpp 4.2 branch - 6th batch
2024-07-17 12:28:18 -05:00
Yuri Sizov 80aec184df Fix argument metadata when binding methods
While there doesn't seem to be any runtime issues,
this triggers the address sanitizer in a few ways,
depending on what kind of method you're
binding.

(cherry picked from commit 2b34bd0d8b)
2024-07-17 09:19:30 -05:00
A Thousand Ships 18c31e3e31 Fix sharing of typed arrays from constructor
(cherry picked from commit 41aa71f8c3)
2024-07-17 09:18:11 -05:00
Thaddeus Crews 52ea8f9101 SCons: Add `silence_msvc` option
(cherry picked from commit 1989b1bf57)
2024-07-17 09:17:49 -05:00
Thaddeus Crews c35e7545b7 Integrate `.pre-commit-config.yaml`
(cherry picked from commit e0d363aad8)
2024-07-17 09:17:36 -05:00
Thaddeus Crews 1a22e43075 Fix `#include` formatting
(cherry picked from commit 999018e7d1)
2024-07-17 09:14:04 -05:00
Thaddeus Crews 121ae8d116 Add `.editorconfig`, consolidate `.gitattributes`
(cherry picked from commit 7a96d0314e)
2024-07-17 09:13:49 -05:00
Fabio Alessandrelli 3bea67ce6c [CI] Update macOS workers to macos-latest
GitHub actions no longer allow `macos-11` runners

(cherry picked from commit 2dd8917508)
2024-07-17 09:13:32 -05:00
A Thousand Ships 19f56af1be Fix some style details in generation
(cherry picked from commit e7a13e3bf4)
2024-07-17 09:12:21 -05:00
A Thousand Ships 7f3e914c6d Enforce `p_` prefixes for arguments in binds
(cherry picked from commit 9e2771f918)
2024-07-17 09:11:54 -05:00
Fabio Alessandrelli 528b7801d2 Add support for build profiles.
Allow enabling or disabling specific classes (which will not be built).

(cherry picked from commit 1186c488bd)
2024-07-17 09:06:07 -05:00
David Snopek 9da6ecd144
Merge pull request #1492 from dsnopek/4.2-cherrypicks-5
Cherry-picks for the godot-cpp 4.2 branch - 5th batch
2024-06-14 13:32:50 -05:00
A Thousand Ships c5204a2e84 Add default argument processing for `NodePath`
(cherry picked from commit 37e7a6da05)
2024-06-14 12:44:10 -05:00
A Thousand Ships a6e5caacf8 Fix generating default values for `StringName`
Cases other than `&""` were not processed correctly

(cherry picked from commit 6cd6c8923a)
2024-06-14 12:44:10 -05:00
David Snopek 246fd4718c Fix vararg methods forwarded to the `ClassDB` singleton
(cherry picked from commit e04a26b2bc)
2024-06-14 12:44:10 -05:00
Richard Hozák b81b0599f9 Fix warnings emitted with -Wall
(cherry picked from commit 8c6cc1ec15)
2024-06-14 12:44:10 -05:00
David Snopek 07b6a03d77 Explicitly refer to `godot` namespace in `GDREGISTER_*_CLASS()` macros
(cherry picked from commit 246a803954)
2024-06-14 12:44:10 -05:00
David Snopek 7e72c8bf0a
Merge pull request #1494 from dsnopek/4.2-ci-godot-test-version
[4.2] Allow selecting Godot version to run the tests with
2024-06-14 12:43:54 -05:00
David Snopek f88b6a2f00 [4.2] Allow selecting Godot version to run the tests with 2024-06-14 11:24:24 -05:00
David Snopek 2b6eb6832e
Merge pull request #1465 from dsnopek/4.2-cherrypicks-4
Cherry-picks for the godot-cpp 4.2 branch - 4th batch
2024-05-28 08:35:12 -05:00
David Snopek a246aaaaf6 Fix NOTIFICATION_POSTINITIALIZE sent twice to native parent class
(cherry picked from commit 06373ce1cf)
2024-05-17 16:41:42 -05:00
Daylily-Zeleen e8e424ade8 mark return value of `get_class_static` and `get_parent_class_static` as const
(cherry picked from commit 3db8549e19)
2024-05-17 16:40:30 -05:00
David Snopek 18354f9b9b Clean up instance bindings for engine singletons to prevent crash
(cherry picked from commit 88df025aa0)
2024-05-17 16:40:13 -05:00
David Snopek acee69a3f6 Allow forwarding from `ClassDB` to `ClassDBSingleton` to support enumerations
(cherry picked from commit e1b3b32db5)
2024-05-17 16:35:22 -05:00
David Snopek ddfcca62a8 Correctly handle `Object *` arguments that were encoded as `nullptr`
(cherry picked from commit 37542dc2ec)
2024-05-17 16:34:41 -05:00
David Snopek 8aef77a64d Give compile-time error if registering a class without its own `_bind_methods()` function
(cherry picked from commit ca46ef4d25)
2024-05-17 16:33:38 -05:00
pupil1337 897280444b Add static_assert() for register_class
(cherry picked from commit 1fa7a9cb19)
2024-05-17 16:32:54 -05:00
A Thousand Ships 3d814f6e87 [Math] Add `is_finite` methods
(cherry picked from commit d389171905)
2024-05-17 16:32:05 -05:00
Chris Cranford 8f8ea90088 Implement to/from dict helpers for PropertyInfo/MethodInfo
(cherry picked from commit 2a041b5240)
2024-05-17 16:30:54 -05:00
David Snopek b28098e76b
Merge pull request #1460 from dsnopek/misc-backports
[4.2] Backport miscellaneous changes that can't be cherry-picked
2024-05-09 07:35:56 -05:00
David Snopek 9afbdb9cf6 Backport miscellaneous changes that can't be cherry-picked 2024-05-08 16:49:18 -05:00
David Snopek 98c143a483 gdextension: Sync with upstream commit 15073afe3856abd2aa1622492fe50026c7d63dc1 (4.2.2-stable) 2024-04-17 13:06:07 -05:00
David Snopek 28d43fb99a
Merge pull request #1442 from dsnopek/4.2-cherrypicks-3
Cherry-picks for the godot-cpp 4.2 branch - 3rd batch
2024-04-17 12:58:21 -05:00
Chris Cranford 77f1d228cd Fix PropertyInfo to use hint/usage default constants
(cherry picked from commit e160966163)
2024-04-17 11:09:24 -05:00
thimenesup ab5b9f2ceb Fix Projection create_orthogonal being incorrect
Title

(cherry picked from commit e4ae69f607)
2024-04-17 11:09:00 -05:00
Thaddeus Crews ef4d771444 Implement `verbose` toggle from godot repo
(cherry picked from commit b05c21bb1d)
2024-04-17 11:08:41 -05:00
dependabot[bot] 66ced64c1e Bump mymindstorm/setup-emsdk from 13 to 14
Bumps [mymindstorm/setup-emsdk](https://github.com/mymindstorm/setup-emsdk) from 13 to 14.
- [Release notes](https://github.com/mymindstorm/setup-emsdk/releases)
- [Commits](https://github.com/mymindstorm/setup-emsdk/compare/v13...v14)

---
updated-dependencies:
- dependency-name: mymindstorm/setup-emsdk
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 32ca574f49)
2024-04-17 11:08:29 -05:00
Thaddeus Crews fc5366c026 Use `GDREGISTER` defines in example
(cherry picked from commit a537b4af4d)
2024-04-17 11:08:14 -05:00
David Snopek 7e5fa8e7a9
Merge pull request #1410 from dsnopek/4.2-cherrypicks-2
Cherry-picks for the godot-cpp 4.2 branch - 2nd batch
2024-04-08 13:09:13 -05:00
A Thousand Ships f8477fb9f2 Fix incorrect utility call signature
(cherry picked from commit d055b575fb)
2024-04-08 11:50:07 -05:00