Skip to content

Commit 77fad29

Browse files
committed
Fix broken promise in Kernel.SpecialForms
1 parent 5bab9ca commit 77fad29

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/elixir/lib/kernel/special_forms.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,14 @@ defmodule Kernel.SpecialForms do
612612
"""
613613
defmacro __DIR__
614614

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+
615623
@doc """
616624
Accesses an already bound variable in match clauses.
617625

0 commit comments

Comments
 (0)