Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
minor improvement to debugging experience
  • Loading branch information
lostmsu committed Nov 13, 2020
commit b8a1b1583992c685d70c8ea4c3f092f9035121e6
3 changes: 3 additions & 0 deletions src/runtime/pythonexception.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ public static bool Matches(IntPtr ob)
return Runtime.PyErr_ExceptionMatches(ob) != 0;
}

[System.Diagnostics.DebuggerHidden]
public static void ThrowIfIsNull(IntPtr ob)
{
if (ob == IntPtr.Zero)
Expand All @@ -258,6 +259,7 @@ public static void ThrowIfIsNull(IntPtr ob)
}
}

[System.Diagnostics.DebuggerHidden]
internal static void ThrowIfIsNull(BorrowedReference reference)
{
if (reference.IsNull)
Expand All @@ -266,6 +268,7 @@ internal static void ThrowIfIsNull(BorrowedReference reference)
}
}

[System.Diagnostics.DebuggerHidden]
public static void ThrowIfIsNotZero(int value)
{
if (value != 0)
Expand Down