I have a problem about creating a macro.
It was a normal operation. When I used commented the five lines.
However, an error appears when trying to create a macro that five lines.
I do not know whether this error is displayed why.
(Code like the following, the error was attached picture file.)
#pragma once
#include "UIMain.generated.h"
#define DECLARE_UIDOC_FIELD(Type,Name)\
public:\
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOn##Name##Changed,Type,Value);\
FOn##Name##Changed On##Name##Changed;\
UPROPERTY()\
Type Name;
UCLASS(BlueprintType, Transient)
class UUIMain : public UUserWidget
{
GENERATED_BODY()
//DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnTestChanged, int32, Test);
//public:
// FOnTestChanged OnTestChanged;
// UPROPERTY()
// int32 Test;
DECLARE_UIDOC_FIELD(int32, Test)
public:
UFUNCTION(BlueprintCallable, Category = "HomeTest" )
void OnClickTest();
UFUNCTION()
void OnReceiveTest(int32 InValue);
};