virtualx-engine/modules/gdscript
Pedro J. Estébanez 26edc6cd41 Promote object validity checks to release builds
Extra:
- Optimized the debug-only check about why the object is null to determine if it's because it has been deleted (the RC is enough; no need to check the ObjectDB).
- Because of the previous point. the debugger being attached is not required anymore for giving the "Object was deleted" error; from now, it only matters that it's a debug build.
- `is_instance_valid()` is now trustworthy. It will return `true` if, and only if, the last object assigned to a `Variant` is still alive (and not if a new object happened to be created at the same memory address of the old one).
- Replacements of `instance_validate()` are used where possible `Variant::is_invalid_object()` is introduced to help with that. (GDScript's `is_instance_valid()` is good.)
2021-09-21 10:39:04 +02:00
..
doc_classes doc: Point URLs to 3.4 version of the online docs 2021-08-12 17:08:10 +02:00
editor Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
icons Add support for creating editor icons per module 2019-06-28 23:42:26 +03:00
language_server Merge pull request #51320 from pycbouh/docs-extract-theme-items-3.x 2021-08-13 22:39:09 +02:00
config.py SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
gdscript.cpp Auto-reload scripts with external editor 2021-08-18 16:52:14 +09:00
gdscript.h Add Script::inherits_script() 2021-08-02 15:18:30 +02:00
gdscript_compiler.cpp Fix typos with codespell 2021-05-20 12:56:56 +02:00
gdscript_compiler.h Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
gdscript_editor.cpp Merge pull request #48131 from LightningAA/fix-48113-3.x 2021-05-06 20:42:23 +02:00
gdscript_function.cpp Promote object validity checks to release builds 2021-09-21 10:39:04 +02:00
gdscript_function.h Promote object validity checks to release builds 2021-09-21 10:39:04 +02:00
gdscript_functions.cpp Promote object validity checks to release builds 2021-09-21 10:39:04 +02:00
gdscript_functions.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gdscript_parser.cpp CI: Upgrade Emscripten to 2.0.25 2021-08-18 11:13:34 +02:00
gdscript_parser.h Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
gdscript_tokenizer.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
gdscript_tokenizer.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
register_types.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
register_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00