Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
b4f281d2
Commit
b4f281d2
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a documentation problem that broke a debugging macro in the runner.
parent
4a651d45
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/runner.c
+9
-9
9 additions, 9 deletions
src/runner.c
with
9 additions
and
9 deletions
src/runner.c
+
9
−
9
View file @
b4f281d2
...
...
@@ -612,7 +612,6 @@ void runner_do_sort_ascending(struct entry *sort, int N) {
}
#ifdef SWIFT_DEBUG_CHECKS
#define RUNNER_CHECK_SORTS(TYPE)
/**
* @brief Recursively checks that the flags are consistent in a cell hierarchy.
*
...
...
@@ -621,14 +620,15 @@ void runner_do_sort_ascending(struct entry *sort, int N) {
* @param c The #cell to check.
* @param flags The sorting flags to check.
*/
void
runner_check_sorts_
##
TYPE
(
struct
cell
*
c
,
int
flags
)
{
if
(
flags
&
~
c
->
TYPE
.
sorted
)
error
(
"Inconsistent sort flags (downward)!"
);
if
(
c
->
split
)
for
(
int
k
=
0
;
k
<
8
;
k
++
)
if
(
c
->
progeny
[
k
]
!=
NULL
&&
c
->
progeny
[
k
]
->
TYPE
.
count
>
0
)
runner_check_sorts_
##
TYPE
(
c
->
progeny
[
k
],
c
->
TYPE
.
sorted
);
}
#define RUNNER_CHECK_SORTS(TYPE) \
void runner_check_sorts_##TYPE(struct cell *c, int flags) { \
\
if (flags & ~c->TYPE.sorted) error("Inconsistent sort flags (downward)!"); \
if (c->split) \
for (int k = 0; k < 8; k++) \
if (c->progeny[k] != NULL && c->progeny[k]->TYPE.count > 0) \
runner_check_sorts_##TYPE(c->progeny[k], c->TYPE.sorted); \
}
#else
#define RUNNER_CHECK_SORTS(TYPE) \
void runner_check_sorts_##TYPE(struct cell *c, int flags) { \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment