Closures

sethiddenstack

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

Syntax

sethiddenstack(target: function | integer, hidden?: boolean)
Aliases setstackhidden

Arguments

NameTypeDescription
targetfunction | integerTarget function, table, stack level, or object being inspected or changed.
hidden?booleanDesired hidden-stack state. If omitted, the helper default is used.

Description

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

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

It does not return data. Treat the call as an action and handle errors around the call site when needed.

Example

Example call with placeholder values.

sethiddenstack(1, true)