We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3771528 commit e33b2f5Copy full SHA for e33b2f5
libcxxabi/src/cxa_exception.cpp
@@ -505,6 +505,15 @@ __cxa_rethrow_primary_exception(void* thrown_object)
505
// If we return client will call terminate()
506
}
507
508
+bool
509
+__cxa_uncaught_exception() throw()
510
+{
511
+ __cxa_eh_globals* globals = __cxa_get_globals_fast();
512
+ if (globals == 0)
513
+ return false;
514
+ return globals->uncaughtExceptions != 0;
515
+}
516
+
517
} // extern "C"
518
519
} // abi
libcxxabi/www/spec.html
@@ -354,8 +354,9 @@
354
</p>
355
</blockquote>
356
</td>
357
-<td colspan="3">I don't think we want to do this. <tt>__cxa_get_globals()</tt>
358
-is already exported and has this information.</td>
+<td>✓</td>
359
360
</tr>
361
362
<tr>
0 commit comments