Skip to content

Still doesn't deal with #ifdef and #endif and #else properly #11

Description

@jamie-pate

EG:

#define SIZE 3

//@json
struct jstruct_annotated_struct {
    int some_field;
#define CANT_EXPAND_SOME_ARRAY
#ifndef CANT_EXPAND_SOME_ARRAY
   unsigned int some_array[SIZE];
#endif
// ideally #else would work here too.
#ifdef CANT_EXPAND_SOME_ARRAY
    unsigned int some_array_0;
    unsigned int some_array_1;
    unsigned int some_array_2;
#endif
}```

fails to parse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions