Skip to content

Macro expansion no arg error  #53

@cyndyishida

Description

@cyndyishida

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions