luadocs/content/lua.scripts.api.manual/dtutils.log/caller.md
Bill Ferguson b69d752221 [lua scripts] created manual from script comments
[lua scripts api] created manual from embedded library documentation

[lua api] created stub to contain lua api manual
2020-12-12 15:14:19 -05:00

593 B

title id weight draft author
caller caller 20 false people

NAME

caller

SYNOPSIS

get the name and line number of the calling routine

USAGE

local log = require "lib/dtutils.log"
result = log.caller(level)

level - number - the number of stack levels to go down to retrieve the caller routine information

DESCRIPTION

caller gets the name and line number of the calling routine and returns it

RETURN VALUE

result - string - the name and line number of the calling function or 'callback: ' if the attempt to get the caller returns nil