feat(libSceLibcInternal): implement set_unexpected, get_unexpected and unexpected #16343
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16343"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by heditrigui on 2026-11-06T10:15:30Z.
What
std::set_unexpected(_ZSt14set_unexpectedPFvvE, NIDEva2i4D5J6I),std::get_unexpected(_ZSt14get_unexpectedv, NIDzPWCqkg7V+o) andstd::unexpected(_ZSt10unexpectedv, NIDlKfKm6INOpQ) inlibSceLibcInternalfollowing the standard C++ unexpected handler lifecycle and dispatch specification inlibcxxabi._ZSt9terminatev_nid_postfix.set_unexpectedrestores the default wrapper and returns the previous handler.unexpectedfalls through to_ZSt9terminatev_nid_postfix.libSceLibcInternalInventory_240_nid_no_patch,libSceLibcInternalInventory_241_nid_no_patch, andsceLibcInternalUnknown6_095_lKfKm6INOpQ_nid_no_patch.docs/dev/debt/libSceLibcInternal.mdtechnical debt entries and table.Tested
core/libs/tests/GuestLibcInternalUnexpected.cppexercising:_ZSt14get_unexpectedv_nid_postfix._ZSt14set_unexpectedPFvvE_nid_postfix.set_unexpected._ZSt10unexpectedv_nid_postfixwith custom and standard exception objects.python tools/check_conventions.py --base upstream/main(0 errors).python core/libs/tests/test_public_headers.py --audit-only(407 libraries, 30714 exports verified).Checklist
main; no other open PR implements the same functions