How can I create a macro function in C++?
When you create a class BlueprintMacroFactory error occurs.
Did you find any details over this yet? I am interested.
You mean blueprint macro asset?
I think you miss some tiny things there which caused error thou. Please check these links:
How to use UFUNCTION macro with inline methods? - C++ Programming - Unreal Engine Forums