lua_gc ( L what -- int )


Vocabulary
lua

Inputs
La c-ptr
whatan int


Outputs
intan int


Word description
Controls garbage collection. This base declaration takes no anonymous arguments. For LUA_GCSTEP, declare a typed variadic alias with a size_t argument. For LUA_GCPARAM, declare an alias with two int arguments (parameter and value). Passing -1 as the value queries a parameter without changing it.

Definition


LIBRARY: liblua5.5 FUNCTION: int lua_gc
( lua_State* L, int what )