STOREV/LOADV* should also print refcnts
This commit is contained in:
1 parent
79000644c6
commit
46613af64c
1 file changed
+3
-3
@@ -440,7 +440,7 @@ jv jq_next(jq_state *jq) {
|
|||||||
if (jq->debug_trace_enabled) {
|
if (jq->debug_trace_enabled) {
|
||||||
printf("V%d = ", v);
|
printf("V%d = ", v);
|
||||||
jv_dump(jv_copy(*var), 0);
|
jv_dump(jv_copy(*var), 0);
|
||||||
printf("\n");
|
printf(" (%d)\n", jv_get_refcnt(*var));
|
||||||
}
|
}
|
||||||
jv_free(stack_pop(jq));
|
jv_free(stack_pop(jq));
|
||||||
stack_push(jq, jv_copy(*var));
|
stack_push(jq, jv_copy(*var));
|
||||||
@@ -455,7 +455,7 @@ jv jq_next(jq_state *jq) {
|
|||||||
if (jq->debug_trace_enabled) {
|
if (jq->debug_trace_enabled) {
|
||||||
printf("V%d = ", v);
|
printf("V%d = ", v);
|
||||||
jv_dump(jv_copy(*var), 0);
|
jv_dump(jv_copy(*var), 0);
|
||||||
printf("\n");
|
printf(" (%d)\n", jv_get_refcnt(*var));
|
||||||
}
|
}
|
||||||
jv_free(stack_pop(jq));
|
jv_free(stack_pop(jq));
|
||||||
stack_push(jq, *var);
|
stack_push(jq, *var);
|
||||||
@@ -471,7 +471,7 @@ jv jq_next(jq_state *jq) {
|
|||||||
if (jq->debug_trace_enabled) {
|
if (jq->debug_trace_enabled) {
|
||||||
printf("V%d = ", v);
|
printf("V%d = ", v);
|
||||||
jv_dump(jv_copy(val), 0);
|
jv_dump(jv_copy(val), 0);
|
||||||
printf("\n");
|
printf(" (%d)\n", jv_get_refcnt(val));
|
||||||
}
|
}
|
||||||
jv_free(*var);
|
jv_free(*var);
|
||||||
*var = val;
|
*var = val;
|
||||||
|
|||||||
Reference in new issue
Block a user