| 84 | } |
| 85 | |
| 86 | bool gi_pattern_reserve(gi_guard_t *guard) { |
| 87 | cbm_ignore_checked_t *owner = guard->owner; |
| 88 | if (!gi_work(guard, 1)) { |
| 89 | return false; |
| 90 | } |
| 91 | if (owner->usage.patterns_reserved == owner->limits.max_patterns) { |
| 92 | return gi_fail(guard, CBM_IGNORE_CHECKED_LIMIT, CBM_IGNORE_CAP_PATTERNS); |
| 93 | } |
| 94 | owner->usage.patterns_reserved++; |
| 95 | return true; |
| 96 | } |
| 97 | |
| 98 | bool gi_begin(cbm_ignore_checked_t *owner, const cbm_ignore_checked_control_t *control, |
| 99 | gi_guard_t *guard) { |
no test coverage detected