We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Test
# p3.nim import std/macros macro p3*(this: untyped): untyped = result = this result[^1] = quote do: echo currentSourcePath() echo getStackTraceEntries()[^1].filename echo getFrame().filename #-------------------------------------- # main.nim import "p3" proc p2 {.p3.} = discard proc p1 = p2() proc main = p1() main()
Result
p3.nim
Expected
main.nim
As far as I'm concerned, there is no workaround for this situation.
>nim -v Nim Compiler Version 1.7.1 [Linux: amd64] Compiled at 2021-10-24 Copyright (c) 2006-2021 by Andreas Rumpf git hash: 62701cd3b92677c2014cf70b1cf5a5ba6e0468bf active boot switches: -d:release -d:danger
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Test
Result
Expected
As far as I'm concerned, there is no workaround for this situation.
The text was updated successfully, but these errors were encountered: