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

CFG_region can only be used in the preprocessor #68

Closed
terrillmoore opened this issue Jun 4, 2018 · 0 comments
Closed

CFG_region can only be used in the preprocessor #68

terrillmoore opened this issue Jun 4, 2018 · 0 comments
Assignees
Labels

Comments

@terrillmoore
Copy link
Member

The definition of CFG_region uses a clever expression involving defined(CFG_*). But defined can only be used in the pre-processor, and the only way to push the info to the compiler is with #if. So need to rewrite as a chain of #if statements assigning a numeric value based on the first match.

@terrillmoore terrillmoore self-assigned this Jun 4, 2018
terrillmoore added a commit that referenced this issue Jun 4, 2018
Fix #68: define CFG_region as a numeric constant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant