Skip to content

Conversation

@maan2003
Copy link
Collaborator

The component macro helps to wrap the function body inside Cx::begin_loc and Cx::end to avoid key collision.

@maan2003
Copy link
Collaborator Author

The name_of_cx function is very ugly but is simplest among the alternative I have tried out.

@maan2003 maan2003 requested a review from raphlinus September 26, 2020 04:31
Copy link
Owner

@raphlinus raphlinus left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! I haven't reviewed the proc macro logic carefully, but certainly based on the example it looks like it's doing what it should be.

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