diff options
author | Evan Nemerson <evan@coeus-group.com> | 2010-05-15 15:16:36 -0700 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-06-15 20:40:27 +0200 |
commit | 2fb2383e5b878da9f3d800e492252115a76c387c (patch) | |
tree | 4f5466fde1e132a74007ed18fcf26a351e12b062 /ccode/valaccodefunction.vala | |
parent | a2c979388250683f8dc91c18db45d3a0a5b3b3e3 (diff) | |
download | vala-2fb2383e5b878da9f3d800e492252115a76c387c.tar.gz |
codegen: write G_GNUC_DEPRECATED in generated C where appropriate
Diffstat (limited to 'ccode/valaccodefunction.vala')
-rw-r--r-- | ccode/valaccodefunction.vala | 4 |
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 (" "); |