Increment the loop depth counter and return the new depth.
()
| 2142 | |
| 2143 | /// Increment the loop depth counter and return the new depth. |
| 2144 | fn enter_loop() -> u32 { |
| 2145 | LOOP_DEPTH.with(|c| { |
| 2146 | let v = c.get() + 1; |
| 2147 | c.set(v); |
| 2148 | v |
| 2149 | }) |
| 2150 | } |
| 2151 | |
| 2152 | /// Decrement the loop depth counter. |
| 2153 | fn leave_loop(depth: u32) { |
no test coverage detected