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.

Składnia

Aliasy

  • debug.getprotos

Argumenty

Zwroty

Przykład

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