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

Skip to content

Commit 51d2911

Browse files
committed
Use DEBUG instead of DEBUG_PRINT
Go with general convention
1 parent 83ae857 commit 51d2911

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/clrmodule/ClrModule.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// set to Python.Runtime's public key token. (sn -T Python.Runtin.dll)
1818
#define USE_PYTHON_RUNTIME_PUBLIC_KEY_TOKEN
1919

20-
// If DEBUG_PRINT is defined in the Build Properties, a few Console.WriteLine
20+
// If DEBUG is defined in the Build Properties, a few Console.WriteLine
2121
// calls are made to indicate what's going on during the load...
2222
//============================================================================
2323
using System;
@@ -37,7 +37,7 @@ public static IntPtr PyInit_clr()
3737
public static void initclr()
3838
#endif
3939
{
40-
#if DEBUG_PRINT
40+
#if DEBUG
4141
Console.WriteLine("Attempting to load Python.Runtime using standard binding rules... ");
4242
#endif
4343
#if USE_PYTHON_RUNTIME_PUBLIC_KEY_TOKEN
@@ -65,7 +65,7 @@ public static void initclr()
6565
try
6666
{
6767
pythonRuntime = Assembly.Load(pythonRuntimeName);
68-
#if DEBUG_PRINT
68+
#if DEBUG
6969
Console.WriteLine("Success!");
7070
#endif
7171
}
@@ -89,14 +89,14 @@ public static void initclr()
8989
throw new InvalidOperationException(executingAssembly.Location);
9090
}
9191
string pythonRuntimeDllPath = Path.Combine(assemblyDirectory, "Python.Runtime.dll");
92-
#if DEBUG_PRINT
92+
#if DEBUG
9393
Console.WriteLine("Attempting to load Python.Runtime from: '{0}'...", pythonRuntimeDllPath);
9494
#endif
9595
pythonRuntime = Assembly.LoadFrom(pythonRuntimeDllPath);
9696
}
9797
catch (InvalidOperationException)
9898
{
99-
#if DEBUG_PRINT
99+
#if DEBUG
100100
Console.WriteLine("Could not load Python.Runtime");
101101
#endif
102102
#if PYTHON3

0 commit comments

Comments
 (0)