# HG changeset patch # User jwe # Date 1189114910 0 # Node ID 1f843c5601b399ff7e3f66e390c14b0fe9d084fa # Parent 94bda6abc224cb86e04f917f69b2ef121b2b0764 [project @ 2007-09-06 21:41:50 by jwe] diff -r 94bda6abc224 -r 1f843c5601b3 src/genprops.awk --- 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: