| 198 | } |
| 199 | |
| 200 | void TContMachineContext::SwitchTo(TContMachineContext* next) noexcept { |
| 201 | if (Y_LIKELY(__mysetjmp(Buf_) == 0)) { |
| 202 | #if defined(USE_SANITIZER_CONTEXT) |
| 203 | next->San_.BeforeSwitch(&San_); |
| 204 | #endif |
| 205 | __mylongjmp(next->Buf_, 1); |
| 206 | } else { |
| 207 | #if defined(USE_SANITIZER_CONTEXT) |
| 208 | San_.AfterSwitch(); |
| 209 | #endif |
| 210 | } |
| 211 | } |
| 212 | #elif defined(_win_) && defined(_32_) |
| 213 | void __stdcall ContextTrampoLine(void* arg) { |
| 214 | Run(arg); |
no test coverage detected