virtualx-engine/modules/gdnative/gdnative
AndreaCatania 98ceb60eb4 Refactors the memnew_placement.
With this commit the macro `memnew_placement` uses the standard memory
placement syntax: `new (mem) TheClass()`, and removes the outdated and
not used syntax:
```
_ALWAYS_INLINE_ void *operator new(size_t p_size, void *p_pointer, size_t check, const char *p_description) {
```

Thanks to this change, the function `memnew_placement` call is compatible with
any class, and can also initialize classes with non-empty constructor:
```
// This is valid, like before.
memnew_placement(mem, Variant);

// This works too:
memnew_placement(mem, Variant(123));
```
2021-08-13 10:18:34 +02:00
..
aabb.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
array.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
basis.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
callable.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
color.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
dictionary.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
gdnative.cpp Further changes to GDNative API 2021-02-09 11:33:35 -03:00
node_path.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
packed_arrays.cpp Refactors the memnew_placement. 2021-08-13 10:18:34 +02:00
plane.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
quaternion.cpp Rename Quat to Quaternion 2021-06-04 18:14:32 +01:00
rect2.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
rid.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
signal.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
string.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
string_name.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
transform2d.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
transform_3d.cpp Rename Transform to Transform3D in GDNative 2021-06-03 07:30:01 -04:00
variant.cpp Refactors the memnew_placement. 2021-08-13 10:18:34 +02:00
vector2.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00
vector3.cpp Further changes in GDNative API 2021-03-17 08:26:10 -03:00