| 178 | } |
| 179 | |
| 180 | AbortFunction SetAborter(AbortFunction&& aborter) { |
| 181 | AbortFunction old_aborter = std::move(Aborter()); |
| 182 | Aborter() = std::move(aborter); |
| 183 | return old_aborter; |
| 184 | } |
| 185 | |
| 186 | // This indirection greatly reduces the stack impact of having lots of |
| 187 | // checks/logging in a function. |