Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
#include "Kismet/BlueprintFunctionLibrary.h"
#include "Builtins.generated.h"


// macOS/Objective-C++ defines Nil as a macro (#define Nil nullptr in objc/objc.h).
// Unreal Engine compiles as Objective-C++ on Apple platforms, causing FSpacetimeDBUuid::Nil()
// to fail with "expected member name or ';' after declaration specifiers".
#ifdef Nil
#define SPACETIMEDB_NIL_MACRO_SAVED
#pragma push_macro("Nil")
#undef Nil
#endif

/**Compression algorithms supported by SpacetimeDB for data storage and transmission. */
UENUM(BlueprintType)
Expand Down Expand Up @@ -1081,4 +1088,10 @@ class SPACETIMEDBSDK_API USpacetimeDBUuidLibrary : public UBlueprintFunctionLibr
{
return FSpacetimeDBUuid(Guid);
}
};
};

// Restore macOS/Objective-C++ Nil macro
#ifdef SPACETIMEDB_NIL_MACRO_SAVED
#pragma pop_macro("Nil")
#undef SPACETIMEDB_NIL_MACRO_SAVED
#endif