2009-02-19 Ali Sabil <ali.sabil@gmail.com>
* vapigen/valagidlparser.vala:
Support to_string attribute for enums
svn path=/trunk/; revision=2456
+2009-02-19 Ali Sabil <ali.sabil@gmail.com>
+
+ * vapigen/valagidlparser.vala:
+
+ Support to_string attribute for enums
+
2009-02-19 Ali Sabil <ali.sabil@gmail.com>
* vapi/packages/gstreamer-rtp-0.10/:
if (eval (nv[1]) == "1") {
is_errordomain = true;
}
+ } else if (nv[0] == "to_string") {
+ var return_type = new UnresolvedType ();
+ return_type.unresolved_symbol = new UnresolvedSymbol (null, "string");
+ return_type.value_owned = false;
+ var m = new Method ("to_string", return_type, current_source_reference);
+ m.access = SymbolAccessibility.PUBLIC;
+ m.set_cname (eval(nv[1]));
+ en.add_method (m);
}
}
}