C++ (Qt) typedef void (*FunctionPtr)(void *DataPtr, unsigned DataSize) class CLayer0{ ... void SetOnRecive(FunctionPtr value);} class CommFT12{ ... void OnRecive(void *DataPtr, unsigned DataSize);} ... CLayer0*layer = new CLayer0; layer->SetOnRecive(OnRecive);
typedef void (__closure *FunctionPtr)(void *DataPtr, unsigned DataSize)