Skip to content

Commit ad7b18c

Browse files
committed
lookahead violations always error carothersc-zz/ROSS@2a068cb
1 parent ced164e commit ad7b18c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/tw-event.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ void tw_event_send(tw_event * event) {
2424
//Trap lookahead violations in debug mode
2525
//Note that compiling with the -DNDEBUG flag will turn this off!
2626
if (g_tw_synchronization_protocol == CONSERVATIVE) {
27-
assert(recv_ts - tw_now(src_lp) >= g_tw_lookahead && "Lookahead violation: try decreasing the lookahead value");
27+
if (recv_ts - tw_now(src_lp) >= g_tw_lookahead) {
28+
tw_error(TW_LOC, "Lookahead violation: decrease g_tw_lookahead");
29+
}
2830
}
2931

3032
if (event->out_msgs) {

0 commit comments

Comments
 (0)