debian/missing-sources/mp4parse/src/macros.rs
raw| 1 | // This Source Code Form is subject to the terms of the Mozilla Public |
| 2 | // License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 | // file, You can obtain one at https://mozilla.org/MPL/2.0/. |
| 4 | |
| 5 | macro_rules! check_parser_state { |
| 6 | ( $src:expr ) => { |
| 7 | if $src.limit() > 0 { |
| 8 | debug!("bad parser state: {} content bytes left", $src.limit()); |
| 9 | return Status::CheckParserStateErr.into(); |
| 10 | } |
| 11 | }; |
| 12 | } |