Mercurial > hg > octave-nkf
comparison scripts/deprecated/is_struct.m @ 7704:1cdb42b372e8
don't embed newline in warning messages in deprecated functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Apr 2008 12:56:48 -0400 |
parents | 0a362fa8f3c8 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
7703:e44e4cd2129d | 7704:1cdb42b372e8 |
---|---|
29 | 29 |
30 persistent warned = false; | 30 persistent warned = false; |
31 if (! warned) | 31 if (! warned) |
32 warned = true; | 32 warned = true; |
33 warning ("Octave:deprecated-function", | 33 warning ("Octave:deprecated-function", |
34 ["is_struct is obsolete and will be removed from a future\n", | 34 "is_struct is obsolete and will be removed from a future version of Octave; please use isstruct instead"); |
35 "version of Octave, please use isstruct instead"]); | |
36 endif | 35 endif |
37 | 36 |
38 retval = isstruct (varargin{:}); | 37 retval = isstruct (varargin{:}); |
39 | 38 |
40 endfunction | 39 endfunction |