Skip to content

Commit a48c007

Browse files
Fix whitespace formatting for specific exception type handlers in C++.
1 parent 83f9c8b commit a48c007

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Unity/Assets/NativeScript/Editor/GenerateBindings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2933,7 +2933,7 @@ static void AppendExceptions(
29332933
builders.CppMethodDefinitions.Append(funcName);
29342934
builders.CppMethodDefinitions.Append("(int32_t handle)\n");
29352935
builders.CppMethodDefinitions.Append("{\n");
2936-
builders.CppMethodDefinitions.Append("\tdelete Plugin::unhandledCsharpException;");
2936+
builders.CppMethodDefinitions.Append("\tdelete Plugin::unhandledCsharpException;\n");
29372937
builders.CppMethodDefinitions.Append("\tPlugin::unhandledCsharpException = new ");
29382938
AppendCppTypeName(
29392939
exceptionType,

Unity/CppSource/NativeScript/Bindings.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2898,7 +2898,8 @@ namespace System
28982898

28992899
DLLEXPORT void SetCsharpExceptionSystemNullReferenceException(int32_t handle)
29002900
{
2901-
delete Plugin::unhandledCsharpException; Plugin::unhandledCsharpException = new System::NullReferenceExceptionThrower(handle);
2901+
delete Plugin::unhandledCsharpException;
2902+
Plugin::unhandledCsharpException = new System::NullReferenceExceptionThrower(handle);
29022903
}
29032904
/*END METHOD DEFINITIONS*/
29042905

0 commit comments

Comments
 (0)