Przejdź do głównej treści

Aliasy

  • debug.getconstant

Argumenty

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

Zwroty

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

Przykład

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