Skip to content

Commit

Permalink
notcurses_debug(): warn on mismatched pile #1078
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Nov 24, 2020
1 parent 2f48c08 commit 43ddfd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ ncpile_debug(const ncpile* p, FILE* debugfp){
if(n->above != prev){
fprintf(stderr, " WARNING: expected ->above %p, got %p\n", prev, n->above);
}
if(ncplane_pile_const(n) != p){
fprintf(stderr, " WARNING: expected pile %p, got %p\n", p, ncplane_pile_const(n));
}
prev = n;
n = n->below;
++planeidx;
Expand Down

0 comments on commit 43ddfd1

Please sign in to comment.