Skip to content

Commit

Permalink
Updated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
portyanikhin committed Oct 11, 2023
1 parent c537ebe commit a7b1477
Show file tree
Hide file tree
Showing 51 changed files with 844 additions and 540 deletions.
2 changes: 1 addition & 1 deletion src/SharpProp/CoolProp/AbstractState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ public double KeyedOutput(Parameters key)
SwigExceptions.ThrowPendingException();
return result;
}
}
}
2 changes: 1 addition & 1 deletion src/SharpProp/CoolProp/AbstractStatePInvoke.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ double secondInput

[DllImport(Library.Name, EntryPoint = "CSharp_AbstractState_keyed_output")]
public static extern double KeyedOutput(HandleRef abstractState, int key);
}
}
2 changes: 1 addition & 1 deletion src/SharpProp/CoolProp/CoolProp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ double thirdInputValue
return result;
}
}
}
}
2 changes: 1 addition & 1 deletion src/SharpProp/CoolProp/CoolPropPInvoke.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ public static extern double HAPropsSI(
string thirdInputKey,
double thirdInputValue
);
}
}
2 changes: 1 addition & 1 deletion src/SharpProp/CoolProp/DoubleVector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,4 @@ public void Dispose()
_currentObject = null;
}
}
}
}
2 changes: 1 addition & 1 deletion src/SharpProp/CoolProp/DoubleVectorPInvoke.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ double item

[DllImport(Library.Name, EntryPoint = "CSharp_delete_DoubleVector")]
public static extern void Delete(HandleRef doubleVector);
}
}
2 changes: 1 addition & 1 deletion src/SharpProp/CoolProp/Library.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
internal static class Library
{
public const string Name = "libCoolProp";
}
}
11 changes: 6 additions & 5 deletions src/SharpProp/CoolProp/SwigExceptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[ExcludeFromCodeCoverage]
internal static class SwigExceptions
{
[ThreadStatic] private static Exception? _pendingException;
[ThreadStatic]
private static Exception? _pendingException;

private static int _pendingExceptionsCount;
private static readonly object ExceptionsLock = new();
Expand Down Expand Up @@ -83,9 +84,9 @@ private static void Set(Exception? exception)
if (_pendingException is not null)
throw new ApplicationException(
"FATAL: An earlier pending exception from "
+ "unmanaged code was missed and thus not thrown ("
+ _pendingException
+ ")",
+ "unmanaged code was missed and thus not thrown ("
+ _pendingException
+ ")",
exception
);
_pendingException = exception;
Expand Down Expand Up @@ -203,4 +204,4 @@ string argumentName
);

private delegate void ExceptionDelegate(string message);
}
}
2 changes: 1 addition & 1 deletion src/SharpProp/Enums/FluidInfoAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ public FluidInfoAttribute(
/// Maximum possible fraction.
/// </summary>
public double FractionMax { get; }
}
}
Loading

0 comments on commit a7b1477

Please sign in to comment.