[libcxx-commits] [libcxx] [libc++] Fix missing 'get_new_handler()' for Windows builds (PR #150182)
Albert Winkler via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 16 00:10:58 PST 2025
winkler283 wrote:
> The following PR fixes the missing `get_new_handler()` function for Windows by using the same implementation as other platforms since `<new.h>` in the UCRT is missing this function and only defines `set_new_handler()`
`<new.h>` in the UCRT not only contains `_set_new_handler()` it also contains `_query_new_handler()` which returns a pointer to the current new handler. Isn't it possible to call that function instead of maintaining your own implementation?
https://github.com/llvm/llvm-project/pull/150182
More information about the libcxx-commits
mailing list