-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Define @__FUNCTION__ as an alias to var"#self#"
#58909
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
Closed
Changes from 10 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
133e189
create `@__FUNCTION__` alias to `var"#self#"`
MilesCranmer 27a75af
docs: add `@__FUNCTION__` to docs and news
MilesCranmer af83ae7
reorder docstrings
MilesCranmer 8b562af
helpful error upon misuse of macro
MilesCranmer fd8a3d2
make sure testset in function will still trigger error
MilesCranmer da27508
expand docs for `@__FUNCTION__`
MilesCranmer 306a0bd
add example with `nameof(@__FUNCTION__)`
MilesCranmer 60b3929
clean up docstring wording
MilesCranmer cedbc7c
Merge branch 'master' into self-macro
MilesCranmer 29a8f6f
remove -> from docstring
MilesCranmer be3017d
Update base/runtime_internals.jl
MilesCranmer 6d30905
fix isdefined call
MilesCranmer 605b8f6
change to test_broken
MilesCranmer d056b7d
add kwargs test for `@__FUNCTION__`
MilesCranmer dbc00c8
docs: update `@__FUNCTION__` docstring given `Expr(:thisfunction)` en…
MilesCranmer 834e15f
docs: put `@__FUNCTION__` into performance section
MilesCranmer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1059,6 +1059,7 @@ export | |
| @__DIR__, | ||
| @__LINE__, | ||
| @__MODULE__, | ||
| @__FUNCTION__, | ||
| @int128_str, | ||
| @uint128_str, | ||
| @big_str, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.