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

Macro expansion no arg error #53

Open
cyndyishida opened this issue Apr 17, 2018 · 0 comments
Open

Macro expansion no arg error #53

cyndyishida opened this issue Apr 17, 2018 · 0 comments

Comments

@cyndyishida
Copy link
Collaborator

Currently if we define an Macro with empty parentheticals, it crashes when we try to call it
i.e.

#define M() 1

int main()
{
#if M()
std::cout <<"call to with parentheses" << std::endl;
#endif

    return 0;
}

returns pepper.symbol_table.PepperSyntaxError: Macro M expects args, but was given none.

but should be valid

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