Skip to content

Conversation

@PMunch
Copy link
Contributor

@PMunch PMunch commented Dec 21, 2022

This closes #21098 by implementing a setLineInfo procedure in the macros module and new magics to support it. I saw that the getter procedures weren't exported so I didn't export the setter procedures either, although I believe we should export both. Just let me know and I can fix that in this PR.

@ringabout
Copy link
Member

Could it be implemented as a VM callback?

@Araq
Copy link
Member

Araq commented Dec 22, 2022

Not the right feature for the callback mechanism. @narimiran please backport to 2.0

@Araq Araq merged commit 613829f into nim-lang:devel Dec 22, 2022
@github-actions
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 613829f

Hint: mm: orc; opt: speed; options: -d:release
165649 lines; 12.274s; 611.652MiB peakmem

narimiran pushed a commit that referenced this pull request Dec 22, 2022
* Implement setLineInfo * Add tests (cherry picked from commit 613829f)
@arnetheduck
Copy link
Contributor

can we backport this to 1.6 as well?

@arnetheduck
Copy link
Contributor

ping @narimiran

narimiran pushed a commit that referenced this pull request Jan 19, 2023
* Implement setLineInfo * Add tests (cherry picked from commit 613829f)
@narimiran
Copy link
Member

Backported to 1.6.

survivorm pushed a commit to survivorm/Nim that referenced this pull request Feb 28, 2023
* Implement setLineInfo * Add tests
capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
* Implement setLineInfo * Add tests
@metagn metagn mentioned this pull request Apr 15, 2023
bung87 pushed a commit to bung87/Nim that referenced this pull request Jul 29, 2023
* Implement setLineInfo * Add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants