Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
804f3235
Commit
804f3235
authored
Jun 28, 2016
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make Tcheck a macro so assertions fail with more helpful __FILE__ and __LINE__
parent
e5f5057f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
cache.h
bin/varnishd/cache/cache.h
+5
-8
No files found.
bin/varnishd/cache/cache.h
View file @
804f3235
...
...
@@ -1095,14 +1095,11 @@ pdiff(const void *b, const void *e)
((
unsigned
)((
const
unsigned
char
*
)
e
-
(
const
unsigned
char
*
)
b
));
}
static
inline
void
Tcheck
(
const
txt
t
)
{
AN
(
t
.
b
);
AN
(
t
.
e
);
assert
(
t
.
b
<=
t
.
e
);
}
#define Tcheck(t) do { \
AN((t).b); \
AN((t).e); \
assert((t).b <= (t).e); \
} while(0)
/*
* unsigned length of a txt
...
...
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