Files
cbindgen/tests/expectations/decl_name_conflicting.compat.c
T
Emilio Cobos Álvarez 750745831a ir: Deal with name conflicts correctly in declaration type resolution.
So, basically, make opaque items last, and make previous names override
them.

Fixes #649
2021-01-26 12:55:05 +01:00

31 lines
475 B
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
enum BindingType
#ifdef __cplusplus
: uint32_t
#endif // __cplusplus
{
Buffer = 0,
NotBuffer = 1,
};
#ifndef __cplusplus
typedef uint32_t BindingType;
#endif // __cplusplus
typedef struct {
BindingType ty;
} BindGroupLayoutEntry;
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void root(BindGroupLayoutEntry entry);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus