summaryrefslogtreecommitdiff
path: root/ccode/valaccodefunction.vala
diff options
context:
space:
mode:
authorEvan Nemerson <evan@coeus-group.com>2010-05-15 15:16:36 -0700
committerJürg Billeter <j@bitron.ch>2010-06-15 20:40:27 +0200
commit2fb2383e5b878da9f3d800e492252115a76c387c (patch)
tree4f5466fde1e132a74007ed18fcf26a351e12b062 /ccode/valaccodefunction.vala
parenta2c979388250683f8dc91c18db45d3a0a5b3b3e3 (diff)
downloadvala-2fb2383e5b878da9f3d800e492252115a76c387c.tar.gz
codegen: write G_GNUC_DEPRECATED in generated C where appropriate
Diffstat (limited to 'ccode/valaccodefunction.vala')
-rw-r--r--ccode/valaccodefunction.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/ccode/valaccodefunction.vala b/ccode/valaccodefunction.vala
index faac0ec94..d414fb28b 100644
--- a/ccode/valaccodefunction.vala
+++ b/ccode/valaccodefunction.vala
@@ -117,6 +117,10 @@ public class Vala.CCodeFunction : CCodeNode {
writer.write_string (")");
+ if (CCodeModifiers.DEPRECATED in modifiers) {
+ writer.write_string (" G_GNUC_DEPRECATED");
+ }
+
if (block == null) {
if (attributes != null) {
writer.write_string (" ");