Ana içeriğe atla

Aliaslar

  • debug.getconstant

Argümanlar

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

Dönüşler

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

Örnek

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