Skip to content

Commit 8b19b0b

Browse files
author
José Valim
committed
Merge pull request #2379 from jw2013/master
Fix broken promise in Kernel.SpecialForms
2 parents 5bab9ca + 77fad29 commit 8b19b0b

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)