Mercurial > octave
annotate libinterp/corefcn/defun-dld.h @ 31226:44cf6bbeeca9
sparse-xpow.cc: Change return type from int to bool for internal function
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Mon, 12 Sep 2022 05:35:48 -0400 |
parents | 796f54d4ddbf |
children | 597f3ee61a48 |
rev | line source |
---|---|
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
1 //////////////////////////////////////////////////////////////////////// |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
2 // |
30564
796f54d4ddbf
update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
29967
diff
changeset
|
3 // Copyright (C) 1994-2022 The Octave Project Developers |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
4 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
5 // See the file COPYRIGHT.md in the top-level directory of this |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
6 // distribution or <https://octave.org/copyright/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
7 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
8 // This file is part of Octave. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
9 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
10 // Octave is free software: you can redistribute it and/or modify it |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
11 // under the terms of the GNU General Public License as published by |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
12 // the Free Software Foundation, either version 3 of the License, or |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
13 // (at your option) any later version. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
14 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
15 // Octave is distributed in the hope that it will be useful, but |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
16 // WITHOUT ANY WARRANTY; without even the implied warranty of |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
18 // GNU General Public License for more details. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
19 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
20 // You should have received a copy of the GNU General Public License |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
21 // along with Octave; see the file COPYING. If not, see |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
22 // <https://www.gnu.org/licenses/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
23 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
24 //////////////////////////////////////////////////////////////////////// |
525 | 25 |
20791
f7084eae3318
maint: Use Octave coding conventions for #if statements.
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
26 #if ! defined (octave_defun_dld_h) |
525 | 27 #define octave_defun_dld_h 1 |
28 | |
21244
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
21200
diff
changeset
|
29 #include "octave-config.h" |
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
21200
diff
changeset
|
30 |
525 | 31 #if defined (octave_defun_h) |
21200
fcac5dbbf9ed
maint: Indent #ifdef blocks in libinterp.
Rik <rik@octave.org>
parents:
20791
diff
changeset
|
32 # error defun.h and defun-dld.h both included in same file! |
525 | 33 #endif |
34 | |
35 #include "defun-int.h" | |
36 | |
24194
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
37 //! Macro to define an at run time dynamically loadable builtin function. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
38 //! |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
39 //! For detailed information, see \ref Macros. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
40 //! |
27956
2310164737b3
fix many spelling errors (bug #57613)
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
41 //! @param name The **unquoted** name of the function that should be installed |
27216
823b4bcf79fc
unless necessary for formatting or code, use ' instead of `
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
42 //! on the 'octave::symbol_table' and can be called by the |
24194
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
43 //! interpreter. Internally, the function name is prepended by an |
27216
823b4bcf79fc
unless necessary for formatting or code, use ' instead of `
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
44 //! 'F'. |
24194
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
45 //! @param args_name The name of the octave_value_list variable used to pass |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
46 //! the argument list to this function. If this value is |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
47 //! omitted, the function cannot access the argument list. |
27216
823b4bcf79fc
unless necessary for formatting or code, use ' instead of `
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
48 //! @param nargout_name The name of the 'int' variable used to pass the number |
24194
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
49 //! of output arguments this function is expected to |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
50 //! produce from the caller. If this value is |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
51 //! omitted, the function cannot access this number. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
52 //! @param doc Texinfo help text (docstring) for the function. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
53 //! |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
54 //! @see DEFMETHOD_DLD |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
55 |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
56 // The order of this macro for name = foo is: |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
57 // 1. Forward declaration of Ffoo. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
58 // 2. Definition of installation function Gfoo. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
59 // 3. Definition of Ffoo. |
3295 | 60 |
22197
e43d83253e28
refill multi-line macro definitions
John W. Eaton <jwe@octave.org>
parents:
21966
diff
changeset
|
61 #define DEFUN_DLD(name, args_name, nargout_name, doc) \ |
e43d83253e28
refill multi-line macro definitions
John W. Eaton <jwe@octave.org>
parents:
21966
diff
changeset
|
62 FORWARD_DECLARE_FUN (name); \ |
e43d83253e28
refill multi-line macro definitions
John W. Eaton <jwe@octave.org>
parents:
21966
diff
changeset
|
63 DEFINE_FUN_INSTALLER_FUN (name, doc) \ |
15421
cd6ce11b9c57
backout changeset 2e5ba861898f
John W. Eaton <jwe@octave.org>
parents:
15398
diff
changeset
|
64 DECLARE_FUN (name, args_name, nargout_name) |
3295 | 65 |
22197
e43d83253e28
refill multi-line macro definitions
John W. Eaton <jwe@octave.org>
parents:
21966
diff
changeset
|
66 #define DEFUNX_DLD(name, fname, gname, args_name, nargout_name, doc) \ |
e43d83253e28
refill multi-line macro definitions
John W. Eaton <jwe@octave.org>
parents:
21966
diff
changeset
|
67 FORWARD_DECLARE_FUNX (fname); \ |
e43d83253e28
refill multi-line macro definitions
John W. Eaton <jwe@octave.org>
parents:
21966
diff
changeset
|
68 DEFINE_FUNX_INSTALLER_FUN (name, fname, gname, doc) \ |
15421
cd6ce11b9c57
backout changeset 2e5ba861898f
John W. Eaton <jwe@octave.org>
parents:
15398
diff
changeset
|
69 DECLARE_FUNX (fname, args_name, nargout_name) |
5796 | 70 |
24194
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
71 //! Macro to define an at run time dynamically loadable builtin method. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
72 //! |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
73 //! For detailed information, see \ref Macros. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
74 //! |
27956
2310164737b3
fix many spelling errors (bug #57613)
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
75 //! @param name The **unquoted** name of the method that should be installed |
27216
823b4bcf79fc
unless necessary for formatting or code, use ' instead of `
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
76 //! on the 'octave::symbol_table' and can be called by the |
24194
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
77 //! interpreter. Internally, the method name is prepended by an |
27216
823b4bcf79fc
unless necessary for formatting or code, use ' instead of `
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
78 //! 'F'. |
823b4bcf79fc
unless necessary for formatting or code, use ' instead of `
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
79 //! @param interp_name The name of the 'octave::interpreter' reference that can |
24194
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
80 //! be used by this method. If this value is omitted, |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
81 //! there is no access to the interpreter and one should |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
82 //! use #DEFUN to define a function instead. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
83 //! @param args_name The name of the octave_value_list variable used to pass |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
84 //! the argument list to this method. If this value is |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
85 //! omitted, the method cannot access the argument list. |
27216
823b4bcf79fc
unless necessary for formatting or code, use ' instead of `
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
86 //! @param nargout_name The name of the 'int' variable used to pass the number |
24194
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
87 //! of output arguments this method is expected to |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
88 //! produce from the caller. If this value is |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
89 //! omitted, the method cannot access this number. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
90 //! @param doc Texinfo help text (docstring) for the method. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
91 //! |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
92 //! @see DEFUN_DLD |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
93 |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
94 // The order of this macro for name = foo is again: |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
95 // 1. Forward declaration of Ffoo. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
96 // 2. Definition of installation function Gfoo. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
97 // 3. Definition of Ffoo. |
3333ca37c038
doc: improve Doxygen comments for DEFUN* macros.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
23699
diff
changeset
|
98 |
23699
b29904962d2d
deprecate some global functions that access the symbol table
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
99 #define DEFMETHOD_DLD(name, interp_name, args_name, nargout_name, doc) \ |
b29904962d2d
deprecate some global functions that access the symbol table
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
100 FORWARD_DECLARE_METHOD (name); \ |
b29904962d2d
deprecate some global functions that access the symbol table
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
101 DEFINE_FUN_INSTALLER_FUN (name, doc) \ |
b29904962d2d
deprecate some global functions that access the symbol table
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
102 DECLARE_METHOD (name, interp_name, args_name, nargout_name) |
b29904962d2d
deprecate some global functions that access the symbol table
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
103 |
b29904962d2d
deprecate some global functions that access the symbol table
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
104 #define DEFMETHODX_DLD(name, fname, gname, interp_name, args_name, \ |
b29904962d2d
deprecate some global functions that access the symbol table
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
105 nargout_name, doc) \ |
b29904962d2d
deprecate some global functions that access the symbol table
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
106 FORWARD_DECLARE_METHODX (fname); \ |
b29904962d2d
deprecate some global functions that access the symbol table
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
107 DEFINE_FUNX_INSTALLER_FUN (name, fname, gname, doc) \ |
b29904962d2d
deprecate some global functions that access the symbol table
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
108 DECLARE_METHODX (fname, interp_name, args_name, nargout_name) |
b29904962d2d
deprecate some global functions that access the symbol table
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
109 |
29967
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
110 // The same as the above, but declare the functions as static. |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
111 // NOTE: These macros should not be used directly. |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
112 |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
113 #define DEFUN_STATIC_DLD(name, args_name, nargout_name, doc) \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
114 FORWARD_DECLARE_STATIC_FUN (name); \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
115 DEFINE_FUN_INSTALLER_FUN (name, doc) \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
116 DECLARE_STATIC_FUN (name, args_name, nargout_name) |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
117 |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
118 #define DEFUNX_STATIC_DLD(name, fname, gname, args_name, \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
119 nargout_name, doc) \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
120 FORWARD_DECLARE_STATIC_FUNX (fname); \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
121 DEFINE_FUNX_INSTALLER_FUN (name, fname, gname, doc) \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
122 DECLARE_STATIC_FUNX (fname, args_name, nargout_name) |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
123 |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
124 #define DEFMETHOD_STATIC_DLD(name, interp_name, args_name, \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
125 nargout_name, doc) \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
126 FORWARD_DECLARE_STATIC_METHOD (name); \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
127 DEFINE_FUN_INSTALLER_FUN (name, doc) \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
128 DECLARE_STATIC_METHOD (name, interp_name, args_name, nargout_name) |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
129 |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
130 #define DEFMETHODX_STATIC_DLD(name, fname, gname, interp_name, \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
131 args_name, nargout_name, doc) \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
132 FORWARD_DECLARE_STATIC_METHODX (fname); \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
133 DEFINE_FUNX_INSTALLER_FUN (name, fname, gname, doc) \ |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
134 DECLARE_STATIC_METHODX (fname, interp_name, args_name, nargout_name) |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
135 |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
136 // The oct-conf-post.h file defines OCTAVE_USE_STATIC_DEFUN to force all |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
137 // dynamically loaded interpreter functions and methods to be static. |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
138 |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
139 #if defined (OCTAVE_USE_STATIC_DEFUN) |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
140 # undef DEFUN_DLD |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
141 # undef DEFUNX_DLD |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
142 # undef DEFMETHOD_DLD |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
143 # undef DEFMETHODX_DLD |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
144 |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
145 # define DEFUN_DLD DEFUN_STATIC_DLD |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
146 # define DEFUNX_DLD DEFUNX_STATIC_DLD |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
147 # define DEFMETHOD_DLD DEFMETHOD_STATIC_DLD |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
148 # define DEFMETHODX_DLD DEFMETHODX_STATIC_DLD |
703 | 149 #endif |
29967
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
150 |
da1678140f7e
make interpreter functions in .oct files static
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
151 #endif |