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

Add experimental ostream #75

Merged
merged 2 commits into from
Feb 22, 2023
Merged

Add experimental ostream #75

merged 2 commits into from
Feb 22, 2023

Conversation

johnjohnlin
Copy link
Collaborator

No description provided.


#define MAKE_VSTRUCT(...) MAKE_NAMEDTUPLE(__VA_ARGS__) TAG_AS_VSTRUCT
#define VSTRUCT_HAS_PROCESS(cls) \
friend ::std::ostream& operator<<(::std::ostream& ost, const cls& rhs) {\
print_indent(ost, 0u, rhs);\
Copy link
Owner

Choose a reason for hiding this comment

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

verilog::print_indent, otherwise user get compile error.


namespace detail {

void put_indent(::std::ostream& ost, unsigned level) {
Copy link
Owner

Choose a reason for hiding this comment

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

Need inline here.

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