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

Macro rework #22

Merged
merged 1 commit into from
Oct 1, 2021
Merged

Macro rework #22

merged 1 commit into from
Oct 1, 2021

Conversation

rroohhh
Copy link
Member

@rroohhh rroohhh commented Sep 29, 2021

This reworks the macros to

  1. Reexport everything they need from narui / narui_core under their own
    module and use them in the generated macros.
  2. Put everything the widget macro generates into the widget module.

This on the one hand fixes all the macro import issues and makes non star imports
work and on the other hand reduces the global namespace pollution by
putting everything into the generated module.

(Depends on #15 aswell, so merge this after that)

@rroohhh rroohhh requested a review from anuejn September 29, 2021 14:12
This reworks the macros to
1. Reexport everything they need from narui / narui_core under their own
module and use them in the generated macros.
2. Put everything the widget macro generates into the widget module.

This on the one hand fixes all the macro import issues and makes non star imports
work and on the other hand reduces the global namespace pollution by
putting everything into the generated module.
@rroohhh rroohhh merged commit 99bffa7 into main Oct 1, 2021
@rroohhh rroohhh deleted the macro_rework branch October 1, 2021 22:29
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.

None yet

2 participants