aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/CompilerServices
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-03 12:07:32 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-08-03 12:07:32 +0200
commit67e7fb13097a23c8865dc0e0d36baa49548279a7 (patch)
tree6b0102a0848e1cf8b590eaa6c44f289e3c6a8d19 /src/CompilerServices
parent28fcfe42333838e35ac71d7c1a4e64a35b43ee6c (diff)
debug.print only when debugging binding
Diffstat (limited to 'src/CompilerServices')
-rw-r--r--src/CompilerServices/Bindings.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CompilerServices/Bindings.cs b/src/CompilerServices/Bindings.cs
index b7967a91..397ec39d 100644
--- a/src/CompilerServices/Bindings.cs
+++ b/src/CompilerServices/Bindings.cs
@@ -168,7 +168,9 @@ namespace Crow
Target = new MemberReference (tmp);
}
if (Target == null) {
+ #if DEBUG_BINDING
Debug.WriteLine ("Binding Source is null: " + Expression);
+ #endif
return false;
}
@@ -182,7 +184,9 @@ namespace Crow
return true;
}
+ #if DEBUG_BINDING
Debug.WriteLine ("Binding member not found: " + member);
+ #endif
Target = null;
return false;
}