Skip to content

Commit 9f8fb6c

Browse files
committed
Fix release build failure on Xamarin.
1 parent 06654e7 commit 9f8fb6c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/MsgPack.Xamarin.iOS/MPContract.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@
2121

2222
namespace MsgPack
2323
{
24-
#if DEBUG
25-
// Use compiler directive to ensure compiler removal of related expressions of assertion.
26-
2724
/// <summary>
2825
/// System.Contract alternative working on Xamarin.
2926
/// </summary>
3027
internal static class MPContract
3128
{
29+
[Conditional( "DEBUG" )]
3230
public static void Assert( bool condition, string userMessage )
3331
{
3432
if ( !condition )
@@ -60,5 +58,4 @@ public static T Result<T>()
6058
return default( T );
6159
}
6260
}
63-
#endif // DEBUG
6461
}

0 commit comments

Comments
 (0)