Files
cbindgen/tests/expectations/both/box.c
T
2020-10-05 19:57:33 +02:00

25 lines
399 B
C

#ifdef __cplusplus
template <typename T>
using Box = T*;
#endif
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef struct NotReprC_Box_i32 NotReprC_Box_i32;
typedef NotReprC_Box_i32 Foo;
typedef struct MyStruct {
int32_t *number;
} MyStruct;
void root(const Foo *a, const MyStruct *with_box);
void drop_box(int32_t *x);
void drop_box_opt(int32_t *x);