Mercurial > octave
diff src/ov.h @ 8992:d12f44a5dce3
implement fast octave_value constructor
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 17 Mar 2009 21:38:12 +0100 |
parents | dc6bda6f9994 |
children | f914834836e7 |
line wrap: on
line diff
--- a/src/ov.h Tue Mar 17 13:43:09 2009 +0100 +++ b/src/ov.h Tue Mar 17 21:38:12 2009 +0100 @@ -156,7 +156,13 @@ enum magic_colon { magic_colon_t }; - octave_value (void); + octave_value (void) + { + static octave_base_value nil_rep; + rep = &nil_rep; + rep->count++; + } + octave_value (short int i); octave_value (unsigned short int i); octave_value (int i);