| 1 |
#if 0 |
| 2 |
''' ' |
| 3 |
#endif |
| 4 |
|
| 5 |
#ifdef __cplusplus |
| 6 |
template <typename T> |
| 7 |
using Box = T*; |
| 8 |
#endif |
| 9 |
|
| 10 |
#if 0 |
| 11 |
' ''' |
| 12 |
#endif |
| 13 |
|
| 14 |
|
| 15 |
#include <cstdarg> |
| 16 |
#include <cstdint> |
| 17 |
#include <cstdlib> |
| 18 |
#include <ostream> |
| 19 |
#include <new> |
| 20 |
|
| 21 |
template<typename T = void> |
| 22 |
struct NotReprC; |
| 23 |
|
| 24 |
template<typename T = void> |
| 25 |
struct Option; |
| 26 |
|
| 27 |
using Foo = NotReprC<Box<int32_t>>; |
| 28 |
|
| 29 |
struct MyStruct { |
| 30 |
Box<int32_t> number; |
| 31 |
}; |
| 32 |
|
| 33 |
extern "C" { |
| 34 |
|
| 35 |
void root(const Foo *a, const MyStruct *with_box); |
| 36 |
|
| 37 |
void drop_box(Box<int32_t> x); |
| 38 |
|
| 39 |
void drop_box_opt(Option<Box<int32_t>> x); |
| 40 |
|
| 41 |
} // extern "C" |