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

Preprocessor error for concatenations used as macro arguments #12

Closed
veripoolbot opened this issue Jun 4, 2008 · 2 comments
Closed
Assignees

Comments

@veripoolbot
Copy link
Collaborator


Author Name: John Dickol
Original Redmine Issue: 12 from https://www.veripool.org
Original Date: 2008-06-04
Original Assignee: Wilson Snyder (@wsnyder)


The preprocessor gives an error when a concatenation (containing a comma) is used as a macro argument:

define vmm_error(log, msg) // macro definition ... vmm_error(this.log, {voter.get_name(), " is not a registered voter"});

%Error: vppp_macro_concat_arg.sv:5: Define passed wrong number of arguments: vmm_error

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2008-06-04T16:32:15Z


The following patch (patch -p0 < BELOW) should fix this issue.
This will be in the next release.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2008-06-04T16:33:35Z


Got boggled, it's attached.

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

2 participants