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

Alternative nested macro expansion fails #10

Open
ckaestne opened this issue May 23, 2012 · 0 comments
Open

Alternative nested macro expansion fails #10

ckaestne opened this issue May 23, 2012 · 0 comments

Comments

@ckaestne
Copy link
Owner

Bug occurs when expanding a macro without parameters to alternative macros with parameters. happened in bnx2.c file in Linux.

small currently ignored test case bnx.c is in the repository

#define LONG(ctr)  long(ctr)

#define SHORT(ctr)  short(ctr)

#ifdef AA
#define DECIDE   LONG
#else
#define DECIDE   SHORT
#endif

DECIDE(a)

DECIDE(b)
ckaestne added a commit that referenced this issue Jun 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant