I have a problem about creating a macro

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);
};

I’m not familiar enough with this stuff to add much insight.

I did notice one thing though: Your new macro isn’t strictly equivalent to the original code – It ends the multicast delegate stuff with Type and Value, but “Value” doesn’t exist. To be strictly equivalent, it should end with Type and Name or “Test” like the original code had.