Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
15a01ad1
Commit
15a01ad1
authored
Dec 26, 2015
by
Drew Fisher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actually support extracting the current exception count on MSVC2015
parent
5cd99a07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
exception.c++
c++/src/kj/exception.c++
+3
-3
No files found.
c++/src/kj/exception.c++
View file @
15a01ad1
...
...
@@ -551,12 +551,12 @@ uint uncaughtExceptionCount() {
#elif _MSC_VER
#if _MSC_VER >= 1900
// MSVC14 has a refactored CRT
, so the appropriate runtime function and offsets changed
.
// MSVC14 has a refactored CRT
which now provides a direct accessor for this value
.
// See https://svn.boost.org/trac/boost/ticket/10158 for a brief discussion.
extern
"C"
char
*
__cdecl
__vcrt_getptd
();
extern
"C"
int
*
__cdecl
__processing_throw
();
uint
uncaughtExceptionCount
()
{
return
*
reinterpret_cast
<
uint
*>
(
__vcrt_getptd
()
+
(
sizeof
(
void
*
)
==
8
?
0x38
:
0x1c
));
return
static_cast
<
uint
>
(
*
__processing_throw
(
));
}
#elif _MSC_VER >= 1400
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment