Require semicolon after most engine API macros
# Conflicts: # Source/Engine/Physics/PhysX/PhysicsBackendPhysX.cpp
This commit is contained in:
@@ -38,7 +38,7 @@ API_ENUM() enum class NetworkIPVersion
|
||||
/// </summary>
|
||||
API_STRUCT() struct FLAXENGINE_API NetworkSocket
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_MINIMAL(NetworkSocketGroup)
|
||||
DECLARE_SCRIPTING_TYPE_MINIMAL(NetworkSocketGroup);
|
||||
|
||||
/// <summary>Socket protocol type.</summary>
|
||||
API_FIELD() NetworkProtocol Protocol = NetworkProtocol::Undefined;
|
||||
@@ -52,7 +52,7 @@ DECLARE_SCRIPTING_TYPE_MINIMAL(NetworkSocketGroup)
|
||||
/// </summary>
|
||||
API_STRUCT() struct FLAXENGINE_API NetworkEndPoint
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_MINIMAL(NetworkSocketGroup)
|
||||
DECLARE_SCRIPTING_TYPE_MINIMAL(NetworkSocketGroup);
|
||||
|
||||
/// <summary>End-point IP version.</summary>
|
||||
API_FIELD(ReadOnly) NetworkIPVersion IPVersion = NetworkIPVersion::Undefined;
|
||||
@@ -126,7 +126,7 @@ DECLARE_ENUM_OPERATORS(NetworkSocketState);
|
||||
/// </summary>
|
||||
API_STRUCT() struct FLAXENGINE_API NetworkSocketGroup
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_MINIMAL(NetworkSocketGroup)
|
||||
DECLARE_SCRIPTING_TYPE_MINIMAL(NetworkSocketGroup);
|
||||
|
||||
/// <summary>Group size.</summary>
|
||||
API_FIELD(ReadOnly) uint32 Count = 0;
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
PLATFORM_DEBUG_BREAK; \
|
||||
} \
|
||||
Platform::Assert(#expression, __FILE__, __LINE__); \
|
||||
}
|
||||
} static_assert(true, "")
|
||||
#else
|
||||
// Performs a hard assertion of the expression. Crashes the engine and triggers a debugger break if the expression fails.
|
||||
#define ASSERT(expression) ((void)0)
|
||||
@@ -63,14 +63,14 @@
|
||||
{ \
|
||||
Platform::CheckFailed(#expression, __FILE__, __LINE__); \
|
||||
return; \
|
||||
}
|
||||
} static_assert(true, "")
|
||||
// Performs a soft check of the expression. Logs the expression failure and returns from the function call using the given return value.
|
||||
#define CHECK_RETURN(expression, returnValue) \
|
||||
if (!(expression)) \
|
||||
{ \
|
||||
Platform::CheckFailed(#expression, __FILE__, __LINE__); \
|
||||
return returnValue; \
|
||||
}
|
||||
} static_assert(true, "")
|
||||
|
||||
#if ENABLE_ASSERTION
|
||||
// Performs a soft check of the expression. Logs the expression failure and returns from the function call.
|
||||
|
||||
Reference in New Issue
Block a user