I want to write
ProgressFunction.BindUFunction(this, NAMEOF(&MyActor::HandleProgress));
instead of
ProgressFunction.BindUFunction(this, "HandleProgress");
where BindUFunction
's second parameter can only accept TCHAR*
.
Question
How to define NAMEOF
macro to convert &Whatever::FunctionName
to "FunctionName"
?