• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Destructor and exit()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Destructor and exit() (From: Eric Shepherd <email@hidden>)
 >Re: Destructor and exit() (From: Markus Hitter <email@hidden>)
 >Re: Destructor and exit() (From: "Oliver" <email@hidden>)

  • Prev by Date: embedding a framework in a framework
  • Next by Date: API search no longer works after an update?
  • Previous by thread: Re: Destructor and exit()
  • Next by thread: Re: Destructor and exit()
  • Index(es):
    • Date
    • Thread