Require semicolon after most engine API macros

This commit is contained in:
2023-07-30 00:56:00 +03:00
parent e21c06e595
commit 203cede21d
17 changed files with 91 additions and 86 deletions

View File

@@ -364,7 +364,8 @@ struct ScriptingObjectSpawnParams
friend class type##Internal; \
static ScriptingTypeInitializer TypeInitializer; \
FORCE_INLINE static const ScriptingType& GetStaticType() { return TypeInitializer.GetType(); } \
FORCE_INLINE static MClass* GetStaticClass() { return TypeInitializer.GetType().ManagedClass; }
FORCE_INLINE static MClass* GetStaticClass() { return TypeInitializer.GetType().ManagedClass; } \
static_assert(true, "")
/// <summary>
/// Helper define used to declare required components for native types that have managed type (for objects that cannot be spawned).
@@ -374,7 +375,8 @@ struct ScriptingObjectSpawnParams
friend class type##Internal; \
static ScriptingTypeInitializer TypeInitializer; \
FORCE_INLINE static const ScriptingType& GetStaticType() { return TypeInitializer.GetType(); } \
FORCE_INLINE static MClass* GetStaticClass() { return TypeInitializer.GetType().ManagedClass; }
FORCE_INLINE static MClass* GetStaticClass() { return TypeInitializer.GetType().ManagedClass; } \
static_assert(true, "")
/// <summary>
/// Helper define used to declare required components for native types that have managed type (for objects that can be spawned).
@@ -392,7 +394,8 @@ struct ScriptingObjectSpawnParams
DECLARE_SCRIPTING_TYPE_NO_SPAWN(type); \
static type* Spawn(const SpawnParams& params) { return ::New<type>(params); } \
explicit type(const SpawnParams& params) : baseType(params) { } \
explicit type() : baseType(SpawnParams(Guid::New(), type::TypeInitializer)) { }
explicit type() : baseType(SpawnParams(Guid::New(), type::TypeInitializer)) { } \
static_assert(true, "")
/// <summary>
/// Helper define used to implement required components for native types that have managed type (for objects that can be spawned).
@@ -408,7 +411,7 @@ struct ScriptingObjectSpawnParams
&baseType::TypeInitializer, \
setupScriptVTable, \
setupScriptObjectVTable \
);
)
/// <summary>
/// Helper define used to implement required components for native types that have managed type (for objects that can be spawned).
@@ -424,7 +427,7 @@ struct ScriptingObjectSpawnParams
nullptr, \
setupScriptVTable, \
setupScriptObjectVTable \
);
)
/// <summary>
/// Helper define used to implement required components for native types that have managed type (for objects that cannot be spawned). With base class specified.
@@ -440,7 +443,7 @@ struct ScriptingObjectSpawnParams
&baseType::TypeInitializer, \
setupScriptVTable, \
setupScriptObjectVTable \
);
)
/// <summary>
/// Helper define used to implement required components for native types that have managed type (for objects that cannot be spawned).
@@ -456,7 +459,7 @@ struct ScriptingObjectSpawnParams
nullptr, \
setupScriptVTable, \
setupScriptObjectVTable \
);
)
/// <summary>
/// The core library assembly. Main C# library with core functionalities.