summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/struct_definition.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-01-19 10:30:00 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-01-25 15:27:05 -0300
commit4cd760c9a7f806614f929cf435f99bc2436527fa (patch)
treeebbae473fe8225acfa2288e03c44fdf9baf21461 /src/bin/eolian_mono/eolian/mono/struct_definition.hh
parentb56a02602ab8bc1b06b2b10c9b1a14b1b189b20e (diff)
eolian_mono: Fix visibility of generated events
Protected members do not make sense in sealed classes like the Concrete ones. Also document the placeholder field in extern structures.
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/struct_definition.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/struct_definition.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/struct_definition.hh b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
index 5db84e0a9b..324e787748 100644
--- a/src/bin/eolian_mono/eolian/mono/struct_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
@@ -67,7 +67,7 @@ struct struct_definition_generator
67 // those 'mini-amd64.c condition fields not met' crashes. 67 // those 'mini-amd64.c condition fields not met' crashes.
68 if (struct_.fields.size() == 0) 68 if (struct_.fields.size() == 0)
69 { 69 {
70 if (!as_generator("public IntPtr field;\n").generate(sink, nullptr, context)) 70 if (!as_generator("///<summary>Placeholder field</summary>\npublic IntPtr field;\n").generate(sink, nullptr, context))
71 return false; 71 return false;
72 } 72 }
73 73