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
039a2f6a
Commit
039a2f6a
authored
Apr 01, 2016
by
Gordon McShane
Committed by
Harris Hancock
Apr 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Accommodate MSVC's noncompliant preprocessor
parent
c05fb412
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test.h
c++/src/kj/test.h
+3
-2
No files found.
c++/src/kj/test.h
View file @
039a2f6a
...
...
@@ -62,10 +62,11 @@ private:
void KJ_UNIQUE_NAME(TestCase)::run()
#if _MSC_VER
#define KJ_INDIRECT_EXPAND(m, vargs) m vargs
#define KJ_FAIL_EXPECT(...) \
KJ_
EXPAND(KJ_LOG(ERROR
, __VA_ARGS__));
KJ_
INDIRECT_EXPAND(KJ_LOG, (ERROR
, __VA_ARGS__));
#define KJ_EXPECT(cond, ...) \
if (cond); else KJ_
EXPAND(KJ_FAIL_EXPECT("failed: expected " #cond
, __VA_ARGS__))
if (cond); else KJ_
INDIRECT_EXPAND(KJ_FAIL_EXPECT, ("failed: expected " #cond
, __VA_ARGS__))
#else
#define KJ_FAIL_EXPECT(...) \
KJ_LOG(ERROR, ##__VA_ARGS__);
...
...
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