summaryrefslogtreecommitdiff
path: root/codegen/valaccode.vala
diff options
context:
space:
mode:
authorDr. Michael Lauer <mickey@vanille-media.de>2018-02-20 16:47:34 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2018-02-20 22:16:19 +0100
commitfcda327ebfc946de971ce7fd9c2715b6d28b518b (patch)
treedc922404216544cff4f2b77175e436c4c5888cd2 /codegen/valaccode.vala
parent00791762328402bb337448b5082c4da126d8b29d (diff)
downloadvala-fcda327ebfc946de971ce7fd9c2715b6d28b518b.tar.gz
codegen: Add support for feature test macros
This adds new CCode string attribute 'feature_test_macro = "VALUE"'. Such values will be added before the headers section as '#define VALUE'. https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html https://bugzilla.gnome.org/show_bug.cgi?id=793444
Diffstat (limited to 'codegen/valaccode.vala')
-rw-r--r--codegen/valaccode.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/codegen/valaccode.vala b/codegen/valaccode.vala
index e84f0e5c9..85d7f4393 100644
--- a/codegen/valaccode.vala
+++ b/codegen/valaccode.vala
@@ -104,6 +104,10 @@ namespace Vala {
return get_ccode_attribute(sym).header_filenames;
}
+ public static string get_ccode_feature_test_macros (Symbol sym) {
+ return get_ccode_attribute(sym).feature_test_macros;
+ }
+
public static string get_ccode_prefix (Symbol sym) {
return get_ccode_attribute(sym).prefix;
}