Zum Hauptinhalt springen

Aliase

  • debug.getconstant

Argumente

function | number
erforderlich
Lua function or stack level whose constants are inspected.
number
erforderlich
One-based constant index.

Rückgaben

any | nil
Constant value at the requested index, or nil when that constant is a function or table.

Beispiel

Read a one-based Proto constant from a Lua closure.