-
Notifications
You must be signed in to change notification settings - Fork 13.3k
The macro __FILE__ does changed? #6491
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
Comments
It's a feature (a "change in core plans") ! What is your use case ? |
Thanks for the fast answer. |
This feature has been awaited for a long time
I'd use a personal git repository to handle everything: versioning, backuping, sharing common code between two closely-looking source code and a string to differentiate them, ... |
@d-a-v Dear Sir, I totally understand the need to patch the gcc in order to strip out the path part of the filename. Best Regards, |
Looks like this has been settled. Closing. |
I wish this entry had not been closed with assumption of settlement. Well, Or a macro that gives full path + filename just like before). Or provide another method to get the full path of compiled source code into the sketch to be utilized during runtime. We need at least one of this proposed solutions to come true. |
@earlephilhower This task is crucial for me to sustain a few distributed products which does not work anymore because of this change since it was highly dependent on __FILE__ having full path. Thank you |
Dear Sirs,
I am using Arduino 1.8.8 at Windows OS having ESP8266 core Git master updated.
I notice that recently the macro FILE does not include the full path + the filename. That was the case recently. Now the command:
Serial.printf(" Source File Name: %s\n",FILE);
gives: Source File Name: testSketch.ino
before was: Source File Name: C:\ArduinoIDE\sketchbook\testSketch\testSketch.ino
Do you know if this is an error or change in core plans?
Can I revert back the FILE macro contains the full path as well as the filename?
Thanks and Best Regaards
Mike Kranidis
The text was updated successfully, but these errors were encountered: