Mercurial > forge
changeset 9643:63b5c1171955 octave-forge
partarray: deprecating function warning message
author | carandraug |
---|---|
date | Mon, 12 Mar 2012 17:59:42 +0000 |
parents | 6f8edf2ed0e6 |
children | 53275a8b8078 |
files | main/miscellaneous/src/partarray.cc |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/main/miscellaneous/src/partarray.cc Mon Mar 12 16:26:07 2012 +0000 +++ b/main/miscellaneous/src/partarray.cc Mon Mar 12 17:59:42 2012 +0000 @@ -159,6 +159,12 @@ Does not work with structure arrays at the moment.\n\ @end deftypefn") { + static bool warned = false; + if (!warned){ + warning_with_id ("Octave:deprecated-function", + "partarray has been deprecated, and will be removed in the future. Use `mat2cell' instead."); + warned = true; + } std::string fname ("partarray"); if (args.length () == 0)