From: Rico Tzschichholz Date: Wed, 21 Nov 2018 13:46:37 +0000 (+0100) Subject: codegen: Don't emit type_id for enum in non GOBJECT profile X-Git-Tag: 0.43.1~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9b139e0665992d837eb12c7ecbe7ca5682d47d7;p=thirdparty%2Fvala.git codegen: Don't emit type_id for enum in non GOBJECT profile --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index d4e539154..522a6d1c5 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -845,7 +845,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { decl_space.add_type_definition (cenum); decl_space.add_type_definition (new CCodeNewline ()); - if (!get_ccode_has_type_id (en)) { + if (context.profile != Profile.GOBJECT || !get_ccode_has_type_id (en)) { return true; }