virtualx-engine/core
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
..
config Rename iterations_per_second to physics_ticks_per_second 2021-08-11 02:37:02 +02:00
crypto [Crypto] Delete mbedtls ctx in deconstructor. 2021-07-03 16:12:55 +02:00
debugger Use doubles for time in many other places 2021-08-09 14:05:42 -05:00
error Modernize atomics 2021-02-18 17:12:46 +01:00
extension Refactors the memnew_placement. 2021-08-13 10:18:34 +02:00
input Use Key enum instead of plain integers 2021-08-10 16:26:55 -05:00
io [Net] Basic extensible MultiplayerAPI spawn/despawn. 2021-08-09 16:34:40 +02:00
math Merge pull request #50682 from aaronfranke/basis-looking-at 2021-08-10 11:28:12 +02:00
object Add a instance callback for extensions 2021-08-05 14:56:13 -03:00
os Refactors the memnew_placement. 2021-08-13 10:18:34 +02:00
string Merge pull request #51395 from angad-k/pseudolocalization-squashed 2021-08-08 17:55:30 +02:00
templates Refactors the memnew_placement. 2021-08-13 10:18:34 +02:00
variant Use Key enum instead of plain integers 2021-08-10 16:26:55 -05:00
core_bind.cpp Rename iterations_per_second to physics_ticks_per_second 2021-08-11 02:37:02 +02:00
core_bind.h Rename iterations_per_second to physics_ticks_per_second 2021-08-11 02:37:02 +02:00
core_builders.py Update AUTHORS and DONORS list 2020-08-14 00:06:51 +02:00
core_constants.cpp Use Key enum instead of plain integers 2021-08-10 16:26:55 -05:00
core_constants.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
core_string_names.cpp Removed _change_notify 2021-02-10 19:31:24 -03:00
core_string_names.h Removed _change_notify 2021-02-10 19:31:24 -03:00
doc_data.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
doc_data.h Add theme item descriptions to the online documentation 2021-08-04 22:27:10 +03:00
register_core_types.cpp Improve extension system 2021-08-05 14:57:31 -03:00
register_core_types.h Implement native extension system 2021-06-25 17:32:45 -03:00
SCsub Implement native extension system 2021-06-25 17:32:45 -03:00
typedefs.h Implement the ability to disable classes 2021-07-13 09:25:14 -03:00
version.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00