lua-users home
lua-l archive

Re: __gc finalizer called at exit?

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


> > It's annoying that a function passed to atexit() won't take a parameter!
> > I assume this is why there's no os.atexit in Lua...
if you don't mind the expense of being non-portable to other compilers,
you could roll your own atexit using gcc's __attribute__((destructor))

AltStyle によって変換されたページ (->オリジナル) /