Re: Where to look for the replacement for a deprecated API?
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