Generate throws attribute on constructors, methods and callbacks.
Signed-off-by: Didier 'Ptitjes <ptitjes@free.fr>
write_indent ();
stream.printf ("<callback name=\"%s\"", cb.name);
stream.printf (" c:type=\"%s\"", cb.get_cname ());
+ if (cb.tree_can_fail) {
+ stream.printf (" throws=\"1\"");
+ }
stream.printf (">\n");
indent++;
} else {
stream.printf (" c:identifier=\"%s\"", m.get_cname ());
}
+ if (m.tree_can_fail) {
+ stream.printf (" throws=\"1\"");
+ }
stream.printf (">\n");
indent++;
write_indent ();
stream.printf ("<constructor name=\"%s\" c:identifier=\"%s\"", m.name, m.get_cname ());
+ if (m.tree_can_fail) {
+ stream.printf (" throws=\"1\"");
+ }
stream.printf (">\n");
indent++;