Skip to content

builtin lua

채승현 edited this page Jun 18, 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.

Note: This document is based on the implementation in fb/lib/src/lua.builtin.cpp.

Clone this wiki locally