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

[VeriblePreProcessor][3]: Passing macros defined using "+define" to "VerilogPreprocess" class #1374

Closed

Conversation

karimtera
Copy link
Contributor

NOTE: This is a part of the sequentially splitted PRs from PR #1360.

Description:
Adding an interface function AddDefineFromCmdLine to use the macros added by +define+\<foo> argument to VerilogPreprocess.

…o generate all variants with the new mode generate-variants
"verible::CmdPositionalArguments" class only supports these types so far: SV files, +define+<name>[=<value>], and +incdir+<dir>.
- Adding an interface function "AddDefineFromCmdLine" to use the macro added by +define+<foo> argument to "VerilogPreprocess".
Copy link
Collaborator

@hzeller hzeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this contains a lot of the changes of the previous PRs, let's first finish the previous ones to reduce the potential merge headaches.

// add the macro definition to memeory.
RegisterMacroDefinition(macro_definition);

return absl::OkStatus();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this only ever returns 'ok status' anyway, let's not bother with error handling for now and just have it a void function.

@karimtera
Copy link
Contributor Author

Closed as a duplicate of #1424

@karimtera karimtera closed this Sep 6, 2022
@karimtera karimtera deleted the pp_pass_defines_from_cmd branch September 6, 2022 00:13
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

Successfully merging this pull request may close these issues.

2 participants