HomeFreeBSD

sys/cdefs.h: add __noexcept and __noexcept_if

Description

sys/cdefs.h: add noexcept and noexcept_if

These macros provide the C++11 noexcept and noexcept(...) keywords if
we're compiling in a C++11 environment. Otherwise, they expand to an
empty string.

This will be used to add the required noexcept specifier to several libc
functions as required in C++11.

MFC after: 2 weeks

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1085

Details

Provenance
lexi_le-fay.orgAuthored on Feb 2 2024, 4:41 PM
impCommitted on Feb 2 2024, 6:11 PM
Parents
rG0e867a491156: aarch/SYS.h: implement _SYSCALL_BODY() macro
Branches
Unknown
Tags
Unknown