kwil-header-tool/test_files/header.h

53 lines
782 B
C
Raw Permalink Normal View History

2023-09-11 16:44:37 +00:00
#ifndef _TEST_HEADER_H
#define _TEST_HEADER_H
#include "kwil.h"
#include "header.kwil.h"
KWIL_ENUM()
enum enum_A {
VALUE_A,
VALUE_B,
VALUE_C
};
KWIL_STRUCT()
struct struct_A {
KWIL_FIELD()
int b;
KWIL_FIELD()
float a;
KWIL_FIELD()
unsigned u;
KWIL_FIELD()
char* dyn_str;
};
typedef enum enum_A enum_A;
typedef struct struct_A struct_A;
KWIL_STRUCT()
struct struct_B {
KWIL_FIELD()
float f;
KWIL_FIELD()
int i;
2023-09-16 15:27:03 +00:00
//KWIL_FIELD()
//char* str;
2023-09-11 16:44:37 +00:00
KWIL_FIELD()
char str_static[44];
KWIL_FIELD()
struct struct_A other_struct;
KWIL_FIELD()
struct_A other_struct_typedef;
KWIL_FIELD()
enum enum_A other_enum;
KWIL_FIELD()
enum_A other_enum_typedef;
};
#endif // !_TEST_HEADER_H