Re: Runtime check if C function exists
Re: Runtime check if C function exists
- Subject: Re: Runtime check if C function exists
- From: Ken Thomases <email@hidden>
- Date: Wed, 31 Mar 2010 16:56:13 -0500
On Mar 31, 2010, at 4:50 PM, Philip Mobley wrote:
> I am wanting to perform a runtime check to see if a particular C function exists. While in this particular case, the C function I want to use is only available as part of 10.6 SDK (there are examples of this in archives), but I want to know if there is a runtime method similar to @selector that would work on C generic methods.
Just check the function address (its name without an argument list) against NULL. There are examples in Apple's cross-development documentation.
http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/cross_development/Using/using.html
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden