setstackhidden Synchronous

  • sethiddenstack

Mark a function’s frames as hidden from Kawaii’s visible stack inspection. Use it to keep a helper frame out of diagnostic call stacks, and clear the flag when finished.

Syntax
Luau
setstackhidden(target: Function | number, hidden: boolean?) -> ()

Parameters

Function parameters
ParameterTypeDescription
targetFunction | numberFunction or visible stack level.
hiddenboolean?Optional boolean; omitted means true.

Returns

()

No value.

Example

Example
Luau
local function helper() end
setstackhidden(helper, true)
print(isstackhidden(helper)) -- true
setstackhidden(helper, false)
Kawaii documentation