SmartOS/Core/Delegate.cpp

18 lines
443 B
C++

#include "Type.h"
#include "DateTime.h"
#include "SString.h"
#include "Delegate.h"
/************************************************ Delegate ************************************************/
/*Delegate::Delegate()
{
Method = nullptr;
Target = nullptr;
}
Delegate::Delegate(Action func) { Method = (void*)func; Target = nullptr; }
Delegate& Delegate::operator=(Action func) { Method = (void*)func; return *this; }
*/