/*** *uncaught_exception.cpp - Some target-independent helper routines used by the EH frame handler. * * Copyright (c) Microsoft Corporation. All rights reserved. * ****/ #include /////////////////////////////////////////////////////////////////////////////// // // __uncaught_exception() - Returns true while a throw is in progress, between // the construction of the thrown object and the // initialization of the caught object in a catch // block. // extern "C" bool __cdecl __uncaught_exception() { RENAME_BASE_PTD(__vcrt_ptd)* const ptd = RENAME_BASE_PTD(__vcrt_getptd_noinit)(); return ptd ? ptd->_ProcessingThrow > 0 : false; }