changeset 6875:1f843c5601b3

[project @ 2007-09-06 21:41:50 by jwe]
author jwe
date Thu, 06 Sep 2007 21:41:50 +0000
parents 94bda6abc224
children 9fcfc9fe7d79
files src/genprops.awk
diffstat 1 files changed, 18 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/genprops.awk	Thu Sep 06 21:34:24 2007 +0000
+++ b/src/genprops.awk	Thu Sep 06 21:41:50 2007 +0000
@@ -13,9 +13,24 @@
 ## If QUALIFIERS is omitted, we generate the following functions directly
 ## in the class declaration:
 ##
-##   TYPE get_NAME (void) const { return NAME; }
-##   void set_NAME (const TYPE& val) { NAME = val; }
-##   void set_NAME (const octave_value& val) { set_NAME (TYPE (val)); }
+##   TYPE
+##   get_NAME (void) const
+##   {
+##     return NAME;
+##   }
+##
+##   void
+##   set_NAME (const TYPE& val)
+##   {
+##     if (! error_state)
+##       NAME = val;
+##   }
+##
+##   void
+##   set_NAME (const octave_value& val)
+##   {
+##     set_NAME (TYPE (val));
+##   }
 ##
 ## If present, the QUALIFIERS string may include any of the characters
 ## g, G, m, s, S, o, O, which have the following meanings: