Commit Graph

10 Commits

Author SHA1 Message Date
Daniel Micay
462c2c5293 conditionally include bits/functexcept.h 2023-06-10 14:20:20 -04:00
Daniel Micay
d8817417cc use compiler extension instead of C11 noreturn
C11 noreturn isn't available in C++.
2021-11-23 16:00:06 -05:00
Daniel Micay
e0ecacff45 drop support for legacy C++ versions 2021-05-21 09:00:39 -04:00
Daniel Micay
a0ee5f445b remove redundant extern "C" block 2019-03-23 13:41:12 -04:00
Daniel Micay
87acbcdf23 replace C++17 aligned allocation functions 2019-03-20 13:19:13 -04:00
Daniel Micay
79cf5cbeb4 disambiguate malloc.h 2018-12-05 07:59:35 -05:00
Daniel Micay
b66ca56ba1 initialize ptr to nullptr in handle_out_of_memory
It will break out of the loop in the first iteration if there's no
handler or the handler throws an out-of-memory error.
2018-10-14 18:00:55 -04:00
Daniel Micay
7606bf4c1f clean up includes in new.cc 2018-10-11 01:35:25 -04:00
Daniel Micay
4716ff5b92 explicitly export C++ allocator overrides
This doesn't make any difference for GCC, but these aren't replaced
outside of the library with Clang without explicitly exporting them.
2018-10-05 02:23:49 -04:00
Daniel Micay
e6e9ac1fc9 support replacing C++ new/delete implementation
This adds support for sanity checks based on sized deallocation and will
reduce the overhead of calls through the C++ allocator.
2018-10-05 02:11:29 -04:00