| 6 |
| 7 | #include <stdlib.h> |
| 8 |
| 9 | namespace base { |
| 10 |
| 11 | void EnableTerminationOnOutOfMemory() { |
| 12 | // Nothing to be done here. |
| 13 | } |
| 14 |
| 15 | void EnableTerminationOnHeapCorruption() { |
| 16 | // Nothing to be done here. |
| 17 | } |
| 18 |
| 19 | bool UncheckedMalloc(size_t size, void** result) { |
| 20 | *result = malloc(size); |
| 21 | return *result != nullptr; |
| 22 | } |
| 23 |
| 24 | } // namespace base |
| 25 |