summaryrefslogtreecommitdiffstats
path: root/core/error
Commit message (Collapse)AuthorAgeFilesLines
* Fix GLTF exporting invalid meshes and attempting to export gizmo meshesAaron Franke2024-02-041-0/+10
|
* Shadow volume culling and tighter shadow caster cullinglawnjelly2024-01-301-0/+10
| | | | | Existing shadow caster culling takes no account of the camera. This PR adds the highly encapsulated class RenderingLightCuller which can cut down the casters in the shadow volume to only those which can cast shadows on the camera frustum.
* Usage notes for DEV_ASSERT macrolawnjelly2023-08-021-2/+13
| | | | Make it more clear that DEV_ASSERT is only to be used in specific cases.
* Fix incorrect index error macrosMikael Hermansson2023-01-222-26/+26
|
* Merge pull request #64795 from RandomShaper/fix_saferefcountRémi Verschelde2023-01-091-7/+7
|\ | | | | | | Prevent misuse of SafeRefCount
| * Prevent misuse of SafeRefCountPedro J. Estébanez2023-01-091-7/+7
| |
* | One Copyright Update to rule them allRémi Verschelde2023-01-054-116/+116
|/ | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Logger: Don't print error twice on `ERR_PRINT`Rémi Verschelde2022-10-041-48/+19
| | | | | | | Also fix broken `ERR_PRINT_ED` macro and simplify comments. For the record these macros aren't used yet, they're intended to be used where needed to surface messages in the toaster when useful to end users, but we haven't done that codebase review yet.
* Errors: Fallback to `fprintf` if `OS` singleton doesn't existRémi Verschelde2022-06-301-1/+7
| | | | | Otherwise we would crash if something prints an error before init or after destruction of the `OS` singleton which handles printing/logging.
* Fix some issues found by cppcheck.bruvzg2022-04-062-2/+2
|
* Protection for array operator for Vector2 / 3 in DEV buildslawnjelly2022-03-071-0/+22
| | | | | | A previous PR had changed the array operator to give unbounded access. This could cause crashes where old code depended on this previous safe behaviour. This PR adds DEV_ASSERT macros for out of bound access to DEV builds, allowing us to quickly identify bugs in calling code, without affecting performance in release or release_debug editor builds.
* Add fflush to error macroslawnjelly2022-02-052-0/+7
| | | | CRASH_NOW macros would previously crash before outputting any error messages. This PR ensures calling fflush for stdout before terminating.
* Update copyright statements to 2022Rémi Verschelde2022-01-034-8/+8
| | | | Happy new year to the wonderful Godot community!
* Defer the call to 'popup_str' to the next cycle to let Godot Engine's editor ↵Xavier Sellier2021-12-141-0/+7
| | | | time to properly start
* Fix console colors on WindowsYuri Roubinsky2021-11-261-1/+1
|
* Implement toast notifications in the editorGilles Roudière2021-10-142-48/+239
|
* revert 0d7409a so additional error information prints in release buildsJordan Schidlowsky2021-10-041-95/+88
|
* Improve error descriptionsMax Hilbrunner2021-08-232-49/+54
|
* Add error_string functionFlorian Kothmeier2021-04-272-0/+88
|
* Modernize atomicsPedro J. Estébanez2021-02-181-6/+8
| | | | | | | | | | - Based on C++11's `atomic` - Reworked `SafeRefCount` (based on the rewrite by @hpvb) - Replaced free atomic functions by the new `SafeNumeric<T>` - Replaced wrong cases of `volatile bool` by the new `SafeFlag` - Platform-specific implementations no longer needed Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
* Update copyright statements to 2021Rémi Verschelde2021-01-013-6/+6
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-074-0/+835
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code