问题描述
我理解 typedef 函数指针之类的
typedef void (*myType) ( );
// ^ ^ ^
// return type type name arguments
myType x;
void myFunc() { std::cout<<"Hello\n"; }
x = &myFunc;
x(); // will print "Hello"
但我无法从位于
的 OBS Studio 源代码中理解这一行
https://github.com/obsproject/libdshowcapture/blob/master/source/external/IVideoCaptureFilter.h
//! Message callback
typedef void (CALLBACK* PFN_VIDEO_CAPTURE_FILTER_NOTIFICATION_CALLBACK)(VIDEO_CAPTURE_FILTER_NOTIFICATION nMessage,void* pData,int nSize,void* pContext);
我不明白为什么 CALLBACK*
和 PFN_VIDEO_CAPTURE_FILTER_NOTIFICATION_CALLBACK
一起出现在 ()
中,我应该理解这个声明什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)