diff options
author | Nicolas Williams <nico@cryptonector.com> | 2014-11-28 20:52:08 -0600 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2014-11-28 20:52:22 -0600 |
commit | 46613af64c03bcd551d5867f2a8352b5c8faf80c (patch) | |
tree | 11f4dcf6a39d5eacfc5bfb87d3a61d52b6c782ed | |
parent | 79000644c6fe3a0772e209845efa90e48fceecca (diff) |
STOREV/LOADV* should also print refcnts
-rw-r--r-- | execute.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |