virtualx-engine/modules/gdnative/godot
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
..
array.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
array.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
basis.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
basis.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
color.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
color.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
dictionary.cpp Comment include order to avoid errors 2017-08-15 22:12:57 +02:00
dictionary.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
gdnative.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
gdnative.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
icon.png.import [GDNative] new GDNative API 2017-07-24 04:23:37 +02:00
node_path.cpp renamed node path, closes #5691 2017-08-05 09:13:59 -03:00
node_path.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
plane.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
plane.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
pool_arrays.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
pool_arrays.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
quat.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
quat.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
rect2.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
rect2.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
rect3.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
rect3.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
rid.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
rid.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
string.cpp Updated function argument names 2017-08-12 15:12:49 -04:00
string.h [GDnative] Correct godot_string_chars_to_utf8_with_len function name 2017-08-19 17:08:33 +02:00
transform.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
transform.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
transform2d.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
transform2d.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
variant.cpp [GDNative] fixed double variant call 2017-08-06 02:04:06 +02:00
variant.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
vector2.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
vector2.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
vector3.cpp [GDNative] better header include paths 2017-08-02 03:50:33 +02:00
vector3.h [GDNative] better header include paths 2017-08-02 03:50:33 +02:00