2014-03-14 14:13:41 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "TestObject.generated.h"
|
|
|
|
|
|
|
|
|
|
UCLASS()
|
|
|
|
|
class UTestObject : public UObject
|
|
|
|
|
{
|
|
|
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
|
|
|
|
|
|
UFUNCTION(BlueprintCallable, Category="Random")
|
|
|
|
|
void TestForNullPtrDefaults(UObject* Obj1 = NULL, UObject* Obj2 = nullptr, UObject* Obj3 = 0);
|
|
|
|
|
|
2014-08-08 09:42:56 -04:00
|
|
|
UPROPERTY()
|
|
|
|
|
int32 Cpp11Init = 123;
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
#if BLAH
|
2014-05-01 15:24:39 -04:00
|
|
|
UFUNCTION() int x; // This should not compile if UHT parses it, which it shouldn't
|
2014-03-14 14:13:41 -04:00
|
|
|
#elif BLAH2
|
2014-05-01 15:24:39 -04:00
|
|
|
UFUNCTION() int x;
|
2014-03-14 14:13:41 -04:00
|
|
|
#else
|
2014-05-01 15:24:39 -04:00
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef X
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#ifndef X
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#elif BLAH4
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#else
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#endif
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#elif BLAH3
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#ifndef X
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#elif BLAH4
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#else
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#endif
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#else
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#ifndef X
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#elif BLAH4
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#else
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#endif
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef X
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#elif BLAH4
|
|
|
|
|
UFUNCTION() int x;
|
|
|
|
|
#else
|
|
|
|
|
UFUNCTION() int x;
|
2014-03-14 14:13:41 -04:00
|
|
|
#endif
|
|
|
|
|
};
|