From ba9ec08e256e7a24beb998510a3d75df2e1a90b5 Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 10 May 2013 23:04:37 +0100 Subject: [PATCH] Added ToString() to the macro-based declarations for better debug output. --- src/Bridge/Preprocessor.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Bridge/Preprocessor.cs b/src/Bridge/Preprocessor.cs index e1a57f7c..1b20418d 100644 --- a/src/Bridge/Preprocessor.cs +++ b/src/Bridge/Preprocessor.cs @@ -28,6 +28,11 @@ //return visitor.VisitMacroExpansion(this); return default(T); } + + public override string ToString() + { + return Text; + } } /// @@ -46,5 +51,10 @@ { return visitor.VisitMacroDefinition(this); } + + public override string ToString() + { + return Expression; + } } }