mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 17:31:51 +03:00
Add q_last_type() queue function
Analogous to q_cur_type(), asserts that queue indices are within a valid range.
This commit is contained in:
committed by
Matthew Barr
parent
a6383a54a4
commit
cea914e18e
@@ -167,7 +167,7 @@ found_miracle:
|
||||
|
||||
DEBUG_PRINTF("skip q forward, %lld to %lld\n", begin_loc, miracle_loc);
|
||||
q_skip_forward_to(q, miracle_loc);
|
||||
if (q->items[q->end - 1].type == MQE_START) {
|
||||
if (q_last_type(q) == MQE_START) {
|
||||
DEBUG_PRINTF("miracle caused infix to die\n");
|
||||
return MIRACLE_DEAD;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user