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 macro name resolution (call gets highest precedence) #262

Merged
merged 3 commits into from
Feb 6, 2023

Conversation

filmor
Copy link
Contributor

@filmor filmor commented Feb 3, 2023

The call node has to be used with highest precedence when looking for
the macro name, as otherwise -define(CALL(A), some_atom). will pick
some_atom as the macro name instead.

Copy link
Member

@elbrujohalcon elbrujohalcon left a comment

Choose a reason for hiding this comment

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

Great catch!

@elbrujohalcon
Copy link
Member

We need to use Ubuntu-20.04 instead of Ubuntu-latest for CI.
Do you mind including that change in this PR, @filmor ?

@paulo-ferraz-oliveira
Copy link
Collaborator

We need to use Ubuntu-20.04 instead of Ubuntu-latest for CI. Do you mind including that change in this PR, @filmor ?

You can also wait for the other PR to be merged, and then rebase this one, @filmor.

@paulo-ferraz-oliveira paulo-ferraz-oliveira changed the title Fix macro name resolution Fix macro name resolution (call gets highest precedence) Feb 3, 2023
The `call` node has to be used with highest precedence when looking for
the macro name, as otherwise `-define(CALL(A), some_atom).` will pick
`some_atom` as the macro name instead.
@filmor filmor force-pushed the fix-macro-name-precedence branch from 5aff054 to ad62dd4 Compare February 4, 2023 00:00
@filmor
Copy link
Contributor Author

filmor commented Feb 4, 2023

You'll either need to adjust the expected status or I'll put slightly more work into this (tomorrow :)) to make the matrix.os part static.

@elbrujohalcon elbrujohalcon merged commit 5a8e3e1 into inaka:main Feb 6, 2023
@filmor filmor deleted the fix-macro-name-precedence branch February 6, 2023 08:52
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.

3 participants