Skip to content

builtin lua

boyism80 edited this page Jun 19, 2025 · 5 revisions

Built-in Functions Documentation (Lua)

This document describes the functions that can be used by Lua-related (lua) type objects.


__gc

__gc()

  • Description:
    A metamethod called when a Lua object is garbage collected. It performs cleanup operations for the object.
  • Parameters: None
  • Return Value: None
  • Example:
    -- This function is not called directly.
    -- Lua's garbage collector calls it automatically.

Clone this wiki locally