Files
cbindgen/tests/expectations/cfg.c
T
2017-11-09 18:04:22 -05:00

46 lines
705 B
C

#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#if (defined(PLATFORM_WIN) || defined(M_32))
enum BarType {
A = 0,
B = 1,
C = 2,
};
typedef uint32_t BarType;
#endif
#if (defined(PLATFORM_UNIX) && defined(X11))
enum FooType {
A = 0,
B = 1,
C = 2,
};
typedef uint32_t FooType;
#endif
#if (defined(PLATFORM_UNIX) && defined(X11))
typedef struct {
FooType ty;
int32_t x;
float y;
} FooHandle;
#endif
#if (defined(PLATFORM_WIN) || defined(M_32))
typedef struct {
BarType ty;
int32_t x;
float y;
} BarHandle;
#endif
#if (defined(PLATFORM_UNIX) && defined(X11))
void root(FooHandle a);
#endif
#if (defined(PLATFORM_WIN) || defined(M_32))
void root(BarHandle a);
#endif