Langsung ke konten utama

Alias

  • debug.getconstant

Argumen

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

Return

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

Contoh

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