From 40bd110443d4f6b2e98e2efeb6045857facbbe8c Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Tue, 31 Dec 2024 06:28:17 +0200 Subject: [PATCH] caller: add page (#15246) --- pages/common/caller.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/caller.md diff --git a/pages/common/caller.md b/pages/common/caller.md new file mode 100644 index 0000000000..15936eee9f --- /dev/null +++ b/pages/common/caller.md @@ -0,0 +1,16 @@ +# caller + +> Print function context. +> More information: . + +- Print the line and filename where the current function was called: + +`caller` + +- Print the line, function and filename where the current function was called: + +`caller 0` + +- Print the line, the function name and the filename of a function call `n` frames back: + +`caller {{n}}`