mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
4bfd549301
On some platforms `libstdc++` is not used or not available, like on the AVR. Such platforms can use this module to implement the C++ `new` and `delete` operators using `malloc` and `free` respectively. However, to be thread-safe, a thread-safe implementation of `malloc` and `free` must be present.
23 lines
805 B
Plaintext
23 lines
805 B
Plaintext
/**
|
|
@defgroup sys_cpp_new_delete C++ new and delete operator module
|
|
@ingroup sys
|
|
@brief This module provides the `new` and `delete` operators for platforms
|
|
that do not use `libstdc++`.
|
|
@warning This module is automatically selected, if needed. Never add it
|
|
manually.
|
|
|
|
# Background
|
|
|
|
On some platforms `libstdc++` is not used or not available, like on the AVR.
|
|
Such platforms can use this module to implement the C++ `new` and `delete`
|
|
operators using `malloc` and `free` respectively. However, to be thread-safe,
|
|
a thread-safe implementation of `malloc` and `free` must be present.
|
|
|
|
# Usage
|
|
|
|
This module is intended to be use by platforms that not providing the required
|
|
operators. Hence, application developers and users should never select this
|
|
module by hand.
|
|
|
|
*/
|