.cargo/vendor/cbindgen/tests/expectations/const_generics_byte.cpp
raw| 1 | #include <cstdarg> |
| 2 | #include <cstdint> |
| 3 | #include <cstdlib> |
| 4 | #include <ostream> |
| 5 | #include <new> |
| 6 | |
| 7 | template<uint8_t OPEN, uint8_t CLOSE> |
| 8 | struct Parser { |
| 9 | uint8_t *buf; |
| 10 | uintptr_t len; |
| 11 | }; |
| 12 | |
| 13 | extern "C" { |
| 14 | |
| 15 | void init_parens_parser(Parser<40, 41> *p, uint8_t *buf, uintptr_t len); |
| 16 | |
| 17 | void destroy_parens_parser(Parser<40, 41> *p); |
| 18 | |
| 19 | void init_braces_parser(Parser<123, 125> *p, uint8_t *buf, uintptr_t len); |
| 20 | |
| 21 | } // extern "C" |