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
1fcec985
Commit
1fcec985
authored
Dec 01, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing includes, ifdef-out RTTI-requiring debug code when RTTI disabled.
parent
793b2af2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
async.c++
c++/src/kj/async.c++
+10
-1
No files found.
c++/src/kj/async.c++
View file @
1fcec985
...
...
@@ -26,7 +26,6 @@
#include "vector.h"
#include <exception>
#include <map>
#include <typeinfo>
#if KJ_USE_FUTEX
#include <unistd.h>
...
...
@@ -34,8 +33,12 @@
#include <linux/futex.h>
#endif
#if !KJ_NO_RTTI
#include <typeinfo>
#if __GNUC__
#include <cxxabi.h>
#include <stdlib.h>
#endif
#endif
namespace
kj
{
...
...
@@ -355,6 +358,7 @@ _::PromiseNode* Event::getInnerForTrace() {
return
nullptr
;
}
#if !KJ_NO_RTTI
#if __GNUC__
static
kj
::
String
demangleTypeName
(
const
char
*
name
)
{
int
status
;
...
...
@@ -368,8 +372,12 @@ static kj::String demangleTypeName(const char* name) {
return
kj
::
heapString
(
name
);
}
#endif
#endif
static
kj
::
String
traceImpl
(
Event
*
event
,
_
::
PromiseNode
*
node
)
{
#if KJ_NO_RTTI
return
heapString
(
"Trace not available because RTTI is disabled."
);
#else
kj
::
Vector
<
kj
::
String
>
trace
;
if
(
event
!=
nullptr
)
{
...
...
@@ -382,6 +390,7 @@ static kj::String traceImpl(Event* event, _::PromiseNode* node) {
}
return
strArray
(
trace
,
"
\n
"
);
#endif
}
kj
::
String
Event
::
trace
()
{
...
...
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