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
a1160bf7
Commit
a1160bf7
authored
Jan 07, 2014
by
Kenton Varda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #65 from dwrensha/typo
fix two typos in the docs
parents
8c5bd340
79f5730b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cxx.md
doc/cxx.md
+2
-2
No files found.
doc/cxx.md
View file @
a1160bf7
...
@@ -154,7 +154,7 @@ exception. The callback may abort the process, and is required to do so in cert
...
@@ -154,7 +154,7 @@ exception. The callback may abort the process, and is required to do so in cert
to continue by inventing "safe" values. This will lead to garbage output, but at least the program
to continue by inventing "safe" values. This will lead to garbage output, but at least the program
will not crash. Your exception callback should set some sort of a flag indicating that an error
will not crash. Your exception callback should set some sort of a flag indicating that an error
occurred, and somewhere up the stack you should check for that flag and cancel the operation.
occurred, and somewhere up the stack you should check for that flag and cancel the operation.
See the header
`
capnp
/exception.h`
for details on how to register an exception callback.
See the header
`
kj
/exception.h`
for details on how to register an exception callback.
## KJ Library
## KJ Library
...
@@ -774,7 +774,7 @@ Here are some tips for using the C++ Cap'n Proto runtime most effectively:
...
@@ -774,7 +774,7 @@ Here are some tips for using the C++ Cap'n Proto runtime most effectively:
excessively large symbol names caused by its use of template-based parser combinators. Stripping
excessively large symbol names caused by its use of template-based parser combinators. Stripping
the binary greatly reduces its size.
the binary greatly reduces its size.
*
The Cap'n Proto library has lots of debug-only asserts that are removed
`#define NDEBUG`
,
*
The Cap'n Proto library has lots of debug-only asserts that are removed
if you
`#define NDEBUG`
,
including in headers. If you care at all about performance, you should compile your production
including in headers. If you care at all about performance, you should compile your production
binaries with the
`-DNDEBUG`
compiler flag. In fact, if Cap'n Proto detects that you have
binaries with the
`-DNDEBUG`
compiler flag. In fact, if Cap'n Proto detects that you have
optimization enabled but have not defined
`NDEBUG`
, it will define it for you (with a warning),
optimization enabled but have not defined
`NDEBUG`
, it will define it for you (with a warning),
...
...
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