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

compiler,plaform: Use unique numbers as internal macro definitions #139

Merged
merged 1 commit into from
Apr 19, 2020

Conversation

stotko
Copy link
Owner

@stotko stotko commented Apr 19, 2020

Macros in the compiler and platform are implemented through magic numbers to distinguish the individual values. However, the ranges of many different groups of macros overlap which leads to unexpected behavior if mixing them up. Use unique identifiers for all valued macros. This fixing potential weird behavior in such cases.

Note that mixing up macros is a bug itself and needs to be fixed. This change helps to unveil such erroneous cases.

@stotko stotko added the bug label Apr 19, 2020
@stotko stotko added this to the 1.3.0 milestone Apr 19, 2020
@codecov
Copy link

codecov bot commented Apr 19, 2020

Codecov Report

Merging #139 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #139   +/-   ##
=======================================
  Coverage   97.64%   97.64%           
=======================================
  Files          28       28           
  Lines        1698     1698           
=======================================
  Hits         1658     1658           
  Misses         40       40           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bcf769c...097d080. Read the comment docs.

@stotko stotko merged commit fe2d76f into master Apr 19, 2020
@stotko stotko deleted the macro_unique_ids branch April 19, 2020 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant