|
> > 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))