We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bab9ca commit 77fad29Copy full SHA for 77fad29
lib/elixir/lib/kernel/special_forms.ex
@@ -612,6 +612,14 @@ defmodule Kernel.SpecialForms do
612
"""
613
defmacro __DIR__
614
615
+ @doc """
616
+ Returns the current calling environment as a `Macro.Env` struct.
617
+
618
+ In the environment you can access the filename, line numbers,
619
+ set up aliases, the function and others.
620
+ """
621
+ defmacro __CALLER__
622
623
@doc """
624
Accesses an already bound variable in match clauses.
625
0 commit comments