zephyr/subsys/cpp
Piotr Pryga a0dc682bd9 cpp: new: Add no-throwing implementation of new operator
C++ subsystem defines exception throwing operator new.
Though the implementation never throws an exception.

If used by an application it should verify if requested
memory was allocated. This is against C++ standard.
If an application does not support exceptions or does not
want to call throwing new operator, it should use a
specialization of a new operator that makes sure it
never throws bad_alloc exception. The cpp subsystem
does not provide this specialization.

The commit adds missing operator new specializations.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2022-10-03 10:13:25 +02:00
..
include cpp: new: Add no-throwing implementation of new operator 2022-10-03 10:13:25 +02:00
CMakeLists.txt
cpp_ctors.c linker: ensure global constructors only run once 2022-06-09 11:33:36 +02:00
cpp_dtors.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
cpp_init_array.c linker: ensure global constructors only run once 2022-06-09 11:33:36 +02:00
cpp_init.c
cpp_new.cpp cpp: new: Add no-throwing implementation of new operator 2022-10-03 10:13:25 +02:00
cpp_virtual.c
cpp_vtable.cpp
Kconfig kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00