Closures

ishiddenstack

Checks whether a function or stack level is hidden from stack inspection.

Syntax

ishiddenstack(target: function | integer): boolean
Aliases isstackhidden

Arguments

NameTypeDescription
targetfunction | integerTarget function, table, stack level, or object being inspected or changed.

Returns

NameTypeDescription
hiddenbooleanTrue when the stack target is hidden.

Description

Checks whether a function or stack level is hidden from stack inspection.

Call it with 1 parameter(s): target. The argument table explains which values are required and which ones only refine the behavior.

It returns hidden (boolean). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = ishiddenstack(1)
print(result)