码迷,mamicode.com
首页 > 其他好文 > 详细

IMP本质上是一个通用的函数指针

时间:2017-07-07 18:16:58      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:end   start   一个   tin   int   pat   ble   通用   sel   

IMP:通用的函数指针

/// A pointer to the function of a method implementation. 

#if !OBJC_OLD_DISPATCH_PROTOTYPES

typedef void (*IMP)(void /* id, SEL, ... */ ); 

#else

typedef id (*IMP)(id, SEL, ...); 

#endif

 

#if !OBJC_OLD_DISPATCH_PROTOTYPES

OBJC_EXPORT void objc_msgSend(void /* id self, SEL op, ... */ )

    __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_2_0);

OBJC_EXPORT void objc_msgSendSuper(void /* struct objc_super *super, SEL op, ... */ )

    __OSX_AVAILABLE_STARTING(__MAC_10_0, __IPHONE_2_0);

#else

IMP本质上是一个通用的函数指针

标签:end   start   一个   tin   int   pat   ble   通用   sel   

原文地址:http://www.cnblogs.com/feng9exe/p/7133458.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!