Skip to content

Commit fa3dedb

Browse files
committed
Small improvements for debug messaging
1 parent 9fee6fb commit fa3dedb

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/expression/expr_evaluator.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ int mpr_expr_eval(mpr_expr expr, ebuffer buff, mpr_value *v_in, mpr_value *v_var
190190

191191
switch (tok->toktype & TOKEN_MASK) {
192192
case TOK_COND_EVAL: {
193+
#if TRACE_EVAL
194+
printf("\n");
195+
#endif
193196
if (v_in && v_out) {
194197
/* calculate bitflags for updated sources */
195198
// TODO: skip this calculation for subsequent conditional evaluation tokens

src/signal.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,10 @@ static void process_maps(mpr_local_sig sig, int id_map_idx)
301301
/* copy input value */
302302
mpr_slot_set_value(src_slot, inst_idx, mpr_value_get_value(sig->value, inst_idx, 0), time);
303303

304-
if (!mpr_slot_get_causes_update((mpr_slot)src_slot))
304+
if (!mpr_slot_get_causes_update((mpr_slot)src_slot)) {
305+
trace("slot update does not cause expression evaluation\n");
305306
continue;
307+
}
306308

307309
if (all) {
308310
/* find a source signal with more instances */

0 commit comments

Comments
 (0)