摘要:#include #include #include using namespace std;typedef void ( *tFunc )( void );class subclass{public: virtual tFunc setFun() = 0;};#define __SetCallBack1(op_name,wrapper_name) \class op_name:public subclass{ \public:\op_name(tFunc func):mfunc(func){}\tFunc setFun(){return mfunc;}\tFunc mfunc;\}; ... 阅读全文
posted @ 2013-08-01 13:45 newShit 阅读(2688) 评论(0) 推荐(0) 编辑