godot/modules/gdscript
Hein-Pieter van Braam cacced7e50 Convert Object::cast_to() to the static version
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.

This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.

It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
..
config.py style: Fix PEP8 blank lines issues in Python files 2016-11-01 00:35:16 +01:00
gd_compiler.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
gd_compiler.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
gd_editor.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
gd_function.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
gd_function.h Removed unnecessary returns and break statements 2017-08-22 13:01:57 -04:00
gd_functions.cpp Merge pull request #10225 from Noshyaar/map 2017-08-22 00:31:46 +02:00
gd_functions.h GDScript Built-in: add inverse_lerp & range_lerp 2017-08-18 21:49:03 +07:00
gd_parser.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
gd_parser.h -Code completion for enumerations 2017-08-24 00:06:56 -03:00
gd_script.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
gd_script.h -Code completion for enumerations 2017-08-24 00:06:56 -03:00
gd_tokenizer.cpp Removed unnecessary assignments 2017-08-21 15:15:55 -04:00
gd_tokenizer.h Make GDScript allow some keywords as identifiers 2017-07-23 23:34:31 +03:00
register_types.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
register_types.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
SCsub SCsub: Add python shebang as a hint for syntax highlighting 2016-10-17 20:10:46 +02:00