Skip to content

Nested with __pragma__(...) #692

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: dev_fall_2019
Choose a base branch
from

Conversation

happy-monk
Copy link
Contributor

@happy-monk happy-monk commented Nov 5, 2019

Keeping on working for #552

In this changeset I've implemented stack for flags set and reset by pragmas. This allows us to solve with __pragma__ nesting problem.

There is also __pragma__('push') and __pragma__('pop') for saving and restoring flag state from stack. I plan to use those to fix the same nesting problem for single-line activated pragmas.

Aliases cannot be nested yet.

The tests is a bit lacking. I think, snapshot testing could be better soultion for testing pragmas.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant