Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jamie-pate opened this issue Jun 3, 2016 · 0 comments
Open

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

jamie-pate opened this issue Jun 3, 2016 · 0 comments

Comments

@jamie-pate
Copy link
Owner

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant