.cargo/vendor/cbindgen/tests/expectations/const_generics_arrayvec.cpp
raw| 1 | #include <cstdarg> |
| 2 | #include <cstdint> |
| 3 | #include <cstdlib> |
| 4 | #include <ostream> |
| 5 | #include <new> |
| 6 | |
| 7 | template<typename T, uintptr_t CAP> |
| 8 | struct ArrayVec { |
| 9 | T xs[CAP]; |
| 10 | uint32_t len; |
| 11 | }; |
| 12 | |
| 13 | extern "C" { |
| 14 | |
| 15 | int32_t push(ArrayVec<uint8_t*, 100> *v, uint8_t *elem); |
| 16 | |
| 17 | } // extern "C" |