Mercurial > hg > octave-lyh
annotate src/defun-dld.h @ 10687:a8ce6bdecce5
Improve documentation strings.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 08 Jun 2010 20:22:38 -0700 |
parents | cd96d29c5efa |
children | fd0a3ac60b0e |
rev | line source |
---|---|
525 | 1 /* |
2 | |
8920 | 3 Copyright (C) 1994, 1995, 1996, 1997, 1999, 2005, 2006, 2007, 2008, 2009 |
7017 | 4 John W. Eaton |
525 | 5 |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
525 | 12 |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
525 | 21 |
22 */ | |
23 | |
24 #if !defined (octave_defun_dld_h) | |
25 #define octave_defun_dld_h 1 | |
26 | |
27 #if defined (octave_defun_h) | |
28 #error defun.h and defun-dld.h both included in same file! | |
29 #endif | |
30 | |
31 #include "defun-int.h" | |
32 | |
550 | 33 // Define a builtin function that may be loaded dynamically at run |
34 // time. | |
35 // | |
36 // If Octave is not configured for dynamic linking of builtin | |
2968 | 37 // functions, this is the same as DEFUN, except that it will generate |
38 // an extra externally visible function. | |
2465 | 39 // |
2968 | 40 // The first DECLARE_FUN is for the benefit of the installer function |
41 // and the second is for the definition of the function. | |
550 | 42 |
2465 | 43 #if defined (MAKE_BUILTINS) |
3295 | 44 |
2465 | 45 #define DEFUN_DLD(name, args_name, nargout_name, doc) \ |
8746
5dd06f19e9be
handle commands in the lexer
John W. Eaton <jwe@octave.org>
parents:
7996
diff
changeset
|
46 DEFUN_DLD_INTERNAL (name, args_name, nargout_name, doc) |
5796 | 47 |
48 // This one can be used when `name' cannot be used directly (if it is | |
49 // already defined as a macro). In that case, name is already a | |
50 // quoted string, and the internal name of the function must be passed | |
7996
6a7db240b3a3
configure.in: eliminate CXX_ABI and OCTAVE_CXX_PREPEND_UNDERSCORE
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
51 // too (the convention is to use a prefix of "F", so "foo" becomes |
6a7db240b3a3
configure.in: eliminate CXX_ABI and OCTAVE_CXX_PREPEND_UNDERSCORE
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
52 // "Ffoo") as well as the name of the generated installer function |
6a7db240b3a3
configure.in: eliminate CXX_ABI and OCTAVE_CXX_PREPEND_UNDERSCORE
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
53 // (the convention is to use a prefix of "G", so "foo" becomes "Gfoo"). |
5796 | 54 |
7996
6a7db240b3a3
configure.in: eliminate CXX_ABI and OCTAVE_CXX_PREPEND_UNDERSCORE
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
55 #define DEFUNX_DLD(name, fname, gname, args_name, nargout_name, doc) \ |
8746
5dd06f19e9be
handle commands in the lexer
John W. Eaton <jwe@octave.org>
parents:
7996
diff
changeset
|
56 DEFUNX_DLD_INTERNAL (name, fname, args_name, nargout_name, doc) |
3295 | 57 |
2465 | 58 #else |
3295 | 59 |
1957 | 60 #define DEFUN_DLD(name, args_name, nargout_name, doc) \ |
61 DECLARE_FUN (name, args_name, nargout_name); \ | |
2968 | 62 DEFINE_FUN_INSTALLER_FUN (name, doc) \ |
1957 | 63 DECLARE_FUN (name, args_name, nargout_name) |
3295 | 64 |
7996
6a7db240b3a3
configure.in: eliminate CXX_ABI and OCTAVE_CXX_PREPEND_UNDERSCORE
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
65 #define DEFUNX_DLD(name, fname, gname, args_name, nargout_name, doc) \ |
5796 | 66 DECLARE_FUNX (fname, args_name, nargout_name); \ |
7996
6a7db240b3a3
configure.in: eliminate CXX_ABI and OCTAVE_CXX_PREPEND_UNDERSCORE
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
67 DEFINE_FUNX_INSTALLER_FUN (name, fname, gname, doc) \ |
5796 | 68 DECLARE_FUNX (fname, args_name, nargout_name) |
69 | |
703 | 70 #endif |
525 | 71 |
72 #endif |