[vala/0.42] codegen: Don't emit type_id for enum in non GOBJECT profile
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] codegen: Don't emit type_id for enum in non GOBJECT profile
- Date: Mon, 26 Nov 2018 09:15:09 +0000 (UTC)
commit 92ceb982710af8df4a5c25d42c244f539354659d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Nov 21 14:46:37 2018 +0100
codegen: Don't emit type_id for enum in non GOBJECT profile
codegen/valaccodebasemodule.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 5c0c81b4d..72ccce4e8 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -837,7 +837,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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]