summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-01-22 18:12:33 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-01-25 15:27:05 -0300
commit42f2aefbaf9d6b6e7f19cfadb19bdc8f32f80f7b (patch)
treedcb455d51f3947566dbf54e2137cc73dd72da49e /src/bin/eolian_mono
parenteaf41d9bcebf4ebf9ede38c42f7c2957f6024504 (diff)
eolian_mono: Add underlying pointer to ToString
It'll make easier to track where an object is coming from.
Diffstat (limited to 'src/bin/eolian_mono')
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index 003f59f746..f0c73b3aaf 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -58,6 +58,11 @@ static bool generate_equals_method(OutputIterator sink, Context const &context)
58 << scope_tab << "{\n" 58 << scope_tab << "{\n"
59 << scope_tab << scope_tab << "return this.raw_handle.ToInt32();\n" 59 << scope_tab << scope_tab << "return this.raw_handle.ToInt32();\n"
60 << scope_tab << "}\n" 60 << scope_tab << "}\n"
61 << scope_tab << "///<summary>How native pointer in string representation.</summary>\n"
62 << scope_tab << "public override String ToString()\n"
63 << scope_tab << "{\n"
64 << scope_tab << scope_tab << "return $\"{this.GetType().Name}@[{this.raw_handle.ToInt32():x}]\";\n"
65 << scope_tab << "}\n"
61 ).generate(sink, nullptr, context); 66 ).generate(sink, nullptr, context);
62} 67}
63 68