summaryrefslogtreecommitdiff
path: root/ccode
diff options
context:
space:
mode:
Diffstat (limited to 'ccode')
-rw-r--r--ccode/valaccodefunction.vala3
-rw-r--r--ccode/valaccodemodifiers.vala3
2 files changed, 5 insertions, 1 deletions
diff --git a/ccode/valaccodefunction.vala b/ccode/valaccodefunction.vala
index 688c6d1eb..7d29de9fd 100644
--- a/ccode/valaccodefunction.vala
+++ b/ccode/valaccodefunction.vala
@@ -111,6 +111,9 @@ public class Vala.CCodeFunction : CCodeNode {
if (CCodeModifiers.INTERNAL in modifiers) {
writer.write_string ("G_GNUC_INTERNAL ");
}
+ if (!is_declaration && CCodeModifiers.NO_INLINE in modifiers) {
+ writer.write_string ("G_GNUC_NO_INLINE ");
+ }
if (CCodeModifiers.STATIC in modifiers) {
writer.write_string ("static ");
}
diff --git a/ccode/valaccodemodifiers.vala b/ccode/valaccodemodifiers.vala
index 257423040..7b83b5a91 100644
--- a/ccode/valaccodemodifiers.vala
+++ b/ccode/valaccodemodifiers.vala
@@ -41,5 +41,6 @@ public enum Vala.CCodeModifiers {
DESTRUCTOR = 1 << 11,
FORMAT_ARG = 1 << 12,
PRINTF = 1 << 13,
- SCANF = 1 << 14
+ SCANF = 1 << 14,
+ NO_INLINE = 1 << 15
}