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

An ifdef construct for android/java sketches #1922

Closed
whackashoe opened this issue Jun 26, 2013 · 5 comments
Closed

An ifdef construct for android/java sketches #1922

whackashoe opened this issue Jun 26, 2013 · 5 comments

Comments

@whackashoe
Copy link
Contributor

When I develop both a sketch to run on both android and on the desktop there is a need for an #ifdef like construct for library loading, input, and initialization purposes. Currently I have to either run an external preprocessor such as mcpp, then load the sketch, rinse and repeat for a switch to android / java mode... or I can maintain separate codebases for <100 lines of code. I think it would be fairly easy to implement into the processing preprocessor, is this within the scope of project or is it considered unnecessary complexity?

@aengelke
Copy link
Contributor

Do you mean something like #320?

@whackashoe
Copy link
Contributor Author

Somewhat, although just using constants is insufficient. There would need to be a preprocessing stage for the imports.

@aengelke
Copy link
Contributor

There is an issue (I think it was closed) that proposed this using comments like the in pjs.

@aengelke
Copy link
Contributor

aengelke commented Jul 7, 2013

See #1637 and #1689, which is closed as duplicate of #320.

@benfry benfry closed this as completed Jul 9, 2013
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants