Skip to main content
Returns all nested Lua functions from a Lua function or stack level as a one-based array table. Invalid stack levels raise “Level out of range”, and non-Lua functions raise “Lua function expected”. debug.getprotos is an alias.

Syntax

Aliase

  • debug.getprotos

Argumente

Rückgaben

Beispiel

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