mirror of https://github.com/ARMmbed/mbed-os.git
Mbed OS does not enable C++ exceptions, so we should call `new` with `std::nothrow` which returns a C-style NULL pointer when allocation fails to allow error handling. For consistency of style within the same file, this commit also replaces `malloc()` and `free()` to `new (std::nothrow)` and `delete`. |
||
|---|---|---|
| .. | ||
| COMPONENT_DATAFLASH | ||
| COMPONENT_FLASHIAP | ||
| COMPONENT_I2CEE | ||
| COMPONENT_OSPIF | ||
| COMPONENT_QSPIF | ||
| COMPONENT_SD | ||
| COMPONENT_SPIF | ||
| include/blockdevice | ||
| source | ||
| tests | ||
| CMakeLists.txt | ||
| mbed_lib.json | ||