Skip to content

add #line directive to source files #323

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

Closed
slady opened this issue Jun 18, 2019 · 1 comment
Closed

add #line directive to source files #323

slady opened this issue Jun 18, 2019 · 1 comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@slady
Copy link

slady commented Jun 18, 2019

When copying sketch source files into the build directory for building, arduino-builder should add #line directives, so the compiler knows the original filename (which can help with error and warning messages and debugging symbols).
Only .ino files are pre-processed in this way now, but the other source files for building (.c, .cpp, .h) should be handled in the same way.

@per1234
Copy link
Contributor

per1234 commented Sep 30, 2021

Closing as fixed by arduino/arduino-cli#1224. Thanks @slady!

@per1234 per1234 closed this as completed Sep 30, 2021
@per1234 per1234 added conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement labels Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants