Skip to content

Commit

Permalink
Add debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
nwellnhof committed Aug 13, 2024
1 parent 8d42f0f commit 044ff1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CommonMark.xs
Original file line number Diff line number Diff line change
Expand Up @@ -510,13 +510,19 @@ PREINIT:
cmark_node *new_parent;
INIT:
old_parent = cmark_node_parent(other);
fprintf(stderr, "### move %s\n", GvNAME(CvGV(cv)));
fflush(stderr);
INTERFACE:
cmark_node_insert_before
cmark_node_insert_after
cmark_node_prepend_child
cmark_node_append_child
POSTCALL:
fprintf(stderr, "### retval %d\n", RETVAL);
fflush(stderr);
if (!RETVAL) {
fprintf(stderr, "### gvname %s\n", GvNAME(CvGV(cv)));
fflush(stderr);
croak("%s: invalid operation", GvNAME(CvGV(cv)));
}
new_parent = cmark_node_parent(other);
Expand Down

0 comments on commit 044ff1f

Please sign in to comment.