[vala/0.40] codegen: Fix value check for constants in fast-vapi
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] codegen: Fix value check for constants in fast-vapi
- Date: Wed, 5 Feb 2020 10:01:45 +0000 (UTC)
commit 6886276844262059c0dceb0f1d3192162f5a6e85
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Nov 19 09:34:50 2019 +0100
codegen: Fix value check for constants in fast-vapi
codegen/valaccodebasemodule.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 3f658f0bb..3e680afda 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -944,7 +944,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
return;
}
- if (!c.external || (c.source_type == SourceFileType.FAST && c.value != null)) {
+ if (!c.external && c.value != null) {
generate_type_declaration (c.type_reference, decl_space);
c.value.emit (this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]