Mercurial > octave-nkf
comparison libinterp/corefcn/error.cc @ 18128:4a4897cd6da1 gui-release
maint: Periodic merge of stable to gui-release.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 11 Dec 2013 22:22:28 -0500 |
parents | d96747f74b1e 25e87795f437 |
children | e473c4853afc |
comparison
equal
deleted
inserted
replaced
18127:d96747f74b1e | 18128:4a4897cd6da1 |
---|---|
1642 disable_warning ("Octave:str-to-num"); | 1642 disable_warning ("Octave:str-to-num"); |
1643 disable_warning ("Octave:mixed-string-concat"); | 1643 disable_warning ("Octave:mixed-string-concat"); |
1644 disable_warning ("Octave:variable-switch-label"); | 1644 disable_warning ("Octave:variable-switch-label"); |
1645 | 1645 |
1646 // This should be an error unless we are in maximum braindamage mode. | 1646 // This should be an error unless we are in maximum braindamage mode. |
1647 // FIXME: Not quite right. This sets the error state even for braindamage | |
1648 // mode. Also, this error is not triggered in normal mode because another | |
1649 // error handler catches it first and gives: | |
1650 // error: subscript indices must be either positive integers or logicals | |
1651 set_warning_state ("Octave:noninteger-range-as-index", "error"); | 1647 set_warning_state ("Octave:noninteger-range-as-index", "error"); |
1652 | |
1653 } | 1648 } |
1654 | 1649 |
1655 DEFUN (lasterror, args, , | 1650 DEFUN (lasterror, args, , |
1656 "-*- texinfo -*-\n\ | 1651 "-*- texinfo -*-\n\ |
1657 @deftypefn {Built-in Function} {@var{lasterr} =} lasterror ()\n\ | 1652 @deftypefn {Built-in Function} {@var{lasterr} =} lasterror ()\n\ |