Re: __gc finalizer called at exit?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: __gc finalizer called at exit?
- From: "Taj Khattra" <taj.khattra@...>
- Date: 2007年12月12日 15:00:13 -0800
> > 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))