summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2014-11-28 20:52:08 -0600
committerNicolas Williams <nico@cryptonector.com>2014-11-28 20:52:22 -0600
commit46613af64c03bcd551d5867f2a8352b5c8faf80c (patch)
tree11f4dcf6a39d5eacfc5bfb87d3a61d52b6c782ed
parent79000644c6fe3a0772e209845efa90e48fceecca (diff)
STOREV/LOADV* should also print refcnts
-rw-r--r--execute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/execute.c b/execute.c
index 89fd9728..1b66770f 100644
--- a/execute.c
+++ b/execute.c
@@ -440,7 +440,7 @@ jv jq_next(jq_state *jq) {
if (jq->debug_trace_enabled) {
printf("V%d = ", v);
jv_dump(jv_copy(*var), 0);
- printf("\n");
+ printf(" (%d)\n", jv_get_refcnt(*var));
}
jv_free(stack_pop(jq));
stack_push(jq, jv_copy(*var));
@@ -455,7 +455,7 @@ jv jq_next(jq_state *jq) {
if (jq->debug_trace_enabled) {
printf("V%d = ", v);
jv_dump(jv_copy(*var), 0);
- printf("\n");
+ printf(" (%d)\n", jv_get_refcnt(*var));
}
jv_free(stack_pop(jq));
stack_push(jq, *var);
@@ -471,7 +471,7 @@ jv jq_next(jq_state *jq) {
if (jq->debug_trace_enabled) {
printf("V%d = ", v);
jv_dump(jv_copy(val), 0);
- printf("\n");
+ printf(" (%d)\n", jv_get_refcnt(val));
}
jv_free(*var);
*var = val;