I have a structure
typedef struct
{
UINT32 a;
Char b,
struct xyz *c;
}A;
Is there a way to generate the following information from the struct?
index type field size
1 UINT32 a 4
2 char b 1
3 pointer c 8
I understand that C doesn't allow reflection and we can use X-Macros to get all of these information, but my structures are extremely complex and have thousands of fields to modify and edit to support X-Macros. I really appreciate if there is a way or support in C, that I am unaware of
Any shell script or python script that can generate these?