From: Jesse van den Kieboom Date: Tue, 7 Feb 2012 10:22:35 +0000 (+0100) Subject: Added error when not exporting any namespaces for GIR X-Git-Tag: 0.15.2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebb9d4435279bbb333adc77bbd41dc8d0fd9929a;p=thirdparty%2Fvala.git Added error when not exporting any namespaces for GIR https://bugzilla.gnome.org/show_bug.cgi?id=669551 --- diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala index fc2c6bf3d..eff974868 100644 --- a/codegen/valagirwriter.vala +++ b/codegen/valagirwriter.vala @@ -188,6 +188,10 @@ public class Vala.GIRWriter : CodeVisitor { ns.source_reference.file.gir_namespace = gir_namespace; ns.source_reference.file.gir_version = gir_version; } + + if (our_namespaces.size == 0) { + Report.error (null, "No suitable namespace found to export for GIR"); + } } private void write_doc (string? comment) {