Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a82bc2

Browse files
committed
allow IncRef/DecRef microoptimization on .NET Standard
1 parent 7661067 commit 8a82bc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/runtime.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ internal static Type[] PythonArgsToTypeArray(IntPtr arg, bool mangleObjects)
706706
/// </summary>
707707
internal static unsafe void XIncref(IntPtr op)
708708
{
709-
#if PYTHON_WITH_PYDEBUG || NETSTANDARD
709+
#if PYTHON_WITH_PYDEBUG
710710
Py_IncRef(op);
711711
return;
712712
#else
@@ -736,7 +736,7 @@ internal static IntPtr SelfIncRef(IntPtr op)
736736

737737
internal static unsafe void XDecref(IntPtr op)
738738
{
739-
#if PYTHON_WITH_PYDEBUG || NETSTANDARD
739+
#if PYTHON_WITH_PYDEBUG
740740
Py_DecRef(op);
741741
return;
742742
#else

0 commit comments

Comments
 (0)