[libc++] Reorganize exception_guard
authorLouis Dionne <ldionne.2@gmail.com>
Fri, 3 Feb 2023 22:27:39 +0000 (17:27 -0500)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 13 Feb 2023 16:50:24 +0000 (11:50 -0500)
commit201b2b5674e1994e56756a013c7dd7ee7be81419
treeacecf94c1a789624af99e49ce8aab6345c130fbb
parent1c9e6238fe2fe27ee9cdb594e4f2bb33bb416e49
[libc++] Reorganize exception_guard

We try to keep as little code as possible within #ifdef.

Differential Revision: https://reviews.llvm.org/D143299
libcxx/include/__utility/exception_guard.h