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

Fix project_version macro #107

Merged
merged 1 commit into from
Apr 12, 2021
Merged

Fix project_version macro #107

merged 1 commit into from
Apr 12, 2021

Conversation

stellartux
Copy link
Contributor

The previous version of this code had a bug which causes an error when a module using the macro is imported and precompiled by another module. I didn't know it was possible to write code which can compile and run but can't precompile, which is why I missed it the first time. This change should fix all of that. I wanted there to be a way to pass @__DIR__ to this macro, but it doesn't seem to be possible without the precompilation issue.

Sorry to be such a pain. I really don't like making mistakes on other people's projects.

The previous version of this code had a bug which caused an error when a project using the macro was precompiled.
@carlobaldassi carlobaldassi merged commit faae259 into carlobaldassi:master Apr 12, 2021
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