lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> Is there a way for an application to find out current values of pause 
> and step?

When you set one of these values, collectgarbage and lua_gc return
the previous value. The manual says so for lua_gc but not for collectgarbage.

> For instance, some library function may want to change these values 
> before doing its work and restore them afterwards.

So just set and save the returned values.