aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2019-01-22 19:51:06 +0100
committerGitHub <[email protected]>2019-01-22 19:51:06 +0100
commit5cd9c35347941b2af477c6b3847894f8b360f47f (patch)
tree0510b36a11a530342a1cd38d5dccee6204173233 /erts/doc/src
parent71c276be5d0a4bf60158137ae3c2be970216429b (diff)
parente96f66d8817d89c51b5066ed0cd69fcda8620306 (diff)
downloadotp-5cd9c35347941b2af477c6b3847894f8b360f47f.tar.gz
otp-5cd9c35347941b2af477c6b3847894f8b360f47f.tar.bz2
otp-5cd9c35347941b2af477c6b3847894f8b360f47f.zip
Merge pull request #2089 from richcarl/document-undefined-current_function
Document that current_function can be undefined OTP-15543
Diffstat (limited to 'erts/doc/src')
-rw-r--r--erts/doc/src/erlang.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index aba6082647..92e979c046 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -5186,11 +5186,13 @@ RealSystem = system + MissedSystem</code>
changed or removed without prior notice.</p>
</item>
<tag><c>{current_function, {<anno>Module</anno>,
- <anno>Function</anno>, Arity}}</c></tag>
+ <anno>Function</anno>, Arity} | undefined}</c></tag>
<item>
<p><c><anno>Module</anno></c>, <c><anno>Function</anno></c>,
<c><anno>Arity</anno></c> is
- the current function call of the process.</p>
+ the current function call of the process. The value
+ <c>undefined</c> can be returned if the process is
+ currently executing native compiled code.</p>
</item>
<tag><c>{current_location, {<anno>Module</anno>,
<anno>Function</anno>, <anno>Arity</anno>,