[vala/staging: 6/7] 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/staging: 6/7] codegen: Don't emit type_id for enum in non GOBJECT profile
- Date: Wed, 21 Nov 2018 14:43:54 +0000 (UTC)
commit 8c8a26d6f1be09743eb0a8859f8bd5fc9ea77a10
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 32d38cc22..32a4e5601 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -843,7 +843,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]