Home  Contents

debug.getmetatable

Debug Lua Commands

SYNOPSIS

debug.getmetatable(object)

DESCRIPTION

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

RETURN VALUE

Returns the metatable of the given object.

ERRORS

Returns nil if it does not have a metatable.