Re: Destructor and exit()
Re: Destructor and exit()
- Subject: Re: Destructor and exit()
- From: "Peter O'Gorman" <email@hidden>
- Date: Sat, 03 Sep 2005 22:39:25 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Oliver wrote:
| There is a pragma that can be used like this:
|
| #pragma CALL_ON_UNLOAD CallMeOnExit
|
| you have to provide a plain "C" function (no C++) like:
|
| extern "C" void CallMeOnExit(void){ /*do your stuff*/ }
|
| there is also CALL_ON_LOAD on some others...
These are deprecated... don't you love that :)
__attribute__((constructor)) and __attribute__((destructor))
Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
iQCVAwUBQxmnjbiDAg3OZTLPAQICFQQAqPI6BikZuAedKGrZOJkFkkT/+ussQFmJ
mPjaKjC8KxNjix/vcoa4lH3kZ6iBUgYyVXBRedruBY04nfyE6LovlZtSVHoCRL5N
43zn1iY2Keoh+YgksjOPTm9Q/dTXaOyH83W8tL30uYXRIsmPkYcRF8gAbe0uFfKJ
TqDDb0eZC14=
=u0P9
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden