debug.getmetatable

Returns the metatable of the given object

Prototype

t = debug.getmetatable (obj)

Description

Returns the metatable of the given object or nil if it does not have a metatable.

Bypasses the check for the "__metatable" entry.

Lua functions

Topics