• 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: Where to look for the replacement for a deprecated API?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where to look for the replacement for a deprecated API?


  • Subject: Re: Where to look for the replacement for a deprecated API?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 10 Dec 2013 00:14:58 +0100

Le 9 déc. 2013 à 22:48, Beinan Li <email@hidden> a écrit :

> On Mac OS X Mountain Lion, I start getting "deprecated API" warnings:
>
>     warning: 'Debugger' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations]
>     1 warning generated.
>
> Then the warning leads me to a dead-end clue that the symbol is defined in
>     /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/MacTypes.h
>
> and marked by
>
>     __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
>
> It never tells me where to look for its replacement.

On Intel arch, you can do something like that

#define Debugger() asm volatile ("int3;")

Else as suggested by Jens, you can also use signal.

#define Debugger() raise(SIGINT)


-- Jean-Daniel





 _______________________________________________
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


  • Follow-Ups:
    • Re: Where to look for the replacement for a deprecated API?
      • From: Beinan Li <email@hidden>
References: 
 >Where to look for the replacement for a deprecated API? (From: Beinan Li <email@hidden>)

  • Prev by Date: Re: Where to look for the replacement for a deprecated API?
  • Next by Date: Re: Where to look for the replacement for a deprecated API?
  • Previous by thread: Re: Where to look for the replacement for a deprecated API?
  • Next by thread: Re: Where to look for the replacement for a deprecated API?
  • Index(es):
    • Date
    • Thread