Mercurial > octave-nkf
diff src/defun-int.h @ 7101:2c5b14c60c6c
[project @ 2007-11-06 16:26:13 by jwe]
author | jwe |
---|---|
date | Tue, 06 Nov 2007 16:26:13 +0000 |
parents | a1dbe9d80eee |
children | 745a8299c2b5 |
line wrap: on
line diff
--- a/src/defun-int.h Mon Nov 05 23:42:01 2007 +0000 +++ b/src/defun-int.h Tue Nov 06 16:26:13 2007 +0000 @@ -95,9 +95,16 @@ bool \ fsname ## _ ## cxx_abi (const octave_shlib& shl, bool relative) \ { \ + bool retval = true; \ + \ check_version (OCTAVE_API_VERSION, name); \ - install_dld_function (fname, name, shl, doc, false, relative); \ - return error_state ? false : true; \ + \ + if (error_state) \ + retval = false; \ + else \ + install_dld_function (fname, name, shl, doc, false, relative); \ + \ + return retval; \ } // MAKE_BUILTINS is defined to extract function names and related