summaryrefslogtreecommitdiff
path: root/ccode/valaccodestruct.vala
diff options
context:
space:
mode:
Diffstat (limited to 'ccode/valaccodestruct.vala')
-rw-r--r--ccode/valaccodestruct.vala6
1 files changed, 4 insertions, 2 deletions
diff --git a/ccode/valaccodestruct.vala b/ccode/valaccodestruct.vala
index 20cae7996..76f7679f2 100644
--- a/ccode/valaccodestruct.vala
+++ b/ccode/valaccodestruct.vala
@@ -1,6 +1,6 @@
/* valaccodestruct.vala
*
- * Copyright (C) 2006-2007 Jürg Billeter
+ * Copyright (C) 2006-2010 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -35,7 +35,9 @@ public class Vala.CCodeStruct : CCodeNode {
* Whether the struct is deprecated.
*/
public bool deprecated { get; set; default = false; }
-
+
+ public bool is_empty { get { return declarations.size == 0; } }
+
private List<CCodeDeclaration> declarations = new ArrayList<CCodeDeclaration> ();
public CCodeStruct (string name) {