Skip to main content

Aliases

  • debug.getprotos

Arguments

function | number
required
Lua function or stack level whose nested functions are returned.

Returns

table
One-based array table containing nested functions. Empty when none are present.

Example

Clone every nested Proto from a Lua closure into an array of new L closures.