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.
Luau
setstackhidden(target: Function | number, hidden: boolean?) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
target | Function | number | Function or visible stack level. |
hidden | boolean? | Optional boolean; omitted means true. |
Returns
()No value.
Example
Luau
local function helper() end
setstackhidden(helper, true)
print(isstackhidden(helper)) -- true
setstackhidden(helper, false)