-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
A further generalized idea of modifying UserSettings.txt sketch-wide #283
Comments
I have shared pull request #282 which adds full platform.sketch.txt file support while providing an IDE configuration option for enabling it first. |
|
|
Based on this path whitelist, the user should be able to choose among blocking, prompting and allowing execution of programs outside the list. The user should also be allowed to maintain his own additional list of whitelisted paths (Arduino-related directories are always allowed.) |
@phd The |
This is a generalized solution to #15 and #29. It adds one preprocessor macro to the sketch file, while achieving the same effects without introducing special files:
#pragma arduino
Whatever text comes after this preprocessor macro, to the end of the line, is treated as part of the UserSettings.txt. For example putting the followign lines in the sketch:
is equivalent to adding the following lines to UserSettings.txt for the specific sketch:
The text was updated successfully, but these errors were encountered: