Mercurial > hg > octave-lyh
diff src/error.cc @ 7977:065c28e1c368
Modify Fcellfun to directly access the error message/id rather than use a call to Flasterr
author | David Bateman <dbateman@free.fr> |
---|---|
date | Mon, 28 Jul 2008 10:50:46 +0200 |
parents | 736124a4fa3d |
children | 30629059b72d |
line wrap: on
line diff
--- a/src/error.cc +++ b/src/error.cc @@ -1740,6 +1740,30 @@ return SET_INTERNAL_VARIABLE (debug_on_warning); } +std::string +last_error_message (void) +{ + return Vlast_error_message; +} + +std::string +last_error_id (void) +{ + return Vlast_error_id; +} + +std::string +last_warning_message (void) +{ + return Vlast_warning_message; +} + +std::string +last_warning_id (void) +{ + return Vlast_warning_id; +} + /* ;;; Local Variables: *** ;;; mode: C++ ***