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

Can use one key with Multi-target? #179

Closed
vnntsu opened this issue Mar 14, 2018 · 2 comments
Closed

Can use one key with Multi-target? #179

vnntsu opened this issue Mar 14, 2018 · 2 comments

Comments

@vnntsu
Copy link

vnntsu commented Mar 14, 2018

Actually, I want to use one key but with each key has different value depending on target that that key belong to.
So How can I do that?
Thanks....

@ashfurrow
Copy link
Collaborator

I don’t think you’ll be able to do that with just CP-Keys. I would create a different key for each target and then access the different keys depending on the target. You can do that by defining macros with a different name on each target and checking at runtime which one is defined. Good luck!

@vnntsu
Copy link
Author

vnntsu commented Mar 15, 2018

@ashfurrow oh, I got it. Thanks!

@vnntsu vnntsu closed this as completed Mar 15, 2018
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

No branches or pull requests

2 participants