Syntax
getprotos(target: function | integer): tableAliases
debug.getprotosArguments
| Name | Type | Description |
|---|---|---|
target | function | integer | Function, stack level, or prototype to inspect. |
Returns
| Name | Type | Description |
|---|---|---|
protos | table | Array table of nested prototypes. |
Description
Returns all nested prototypes found in a function.
Call it with 1 parameter(s): target. The argument table explains which values are required and which ones only refine the behavior.
It returns protos (table). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Example call with placeholder values.
local result = getprotos(1)
print(result)