Mercurial > octave-libgccjit
diff src/defun.cc @ 4448:042cdbb7f317
[project @ 2003-07-08 19:14:55 by jwe]
author | jwe |
---|---|
date | Tue, 08 Jul 2003 19:14:55 +0000 |
parents | 3e94126d8071 |
children | b484cdca27be |
line wrap: on
line diff
--- a/src/defun.cc Tue Jul 08 18:37:53 2003 +0000 +++ b/src/defun.cc Tue Jul 08 19:14:55 2003 +0000 @@ -68,13 +68,13 @@ void check_version (const std::string& version, const std::string& fcn) { - if (version != OCTAVE_VERSION) + if (version != OCTAVE_API_VERSION) { - warning ("incompatible version %s found in function `%s'", - version.c_str (), fcn.c_str ()); - warning ("this can lead to incorrect results or other failures"); - warning ("you can fix this problem by recompiling this .oct file"); - + error ("API version %s found in .oct file function `%s'\n" + " does not match the running Octave (API version %s)\n" + " this can lead to incorrect results or other failures\n" + " you can fix this problem by recompiling this .oct file", + version.c_str (), fcn.c_str (), OCTAVE_API_VERSION); } }