摘要:
#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;\}; ... 阅读全文