GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
libinterp
corefcn
defun-dld.h
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 1994-2017 John W. Eaton
4
5
This file is part of Octave.
6
7
Octave is free software; you can redistribute it and/or modify it
8
under the terms of the GNU General Public License as published by the
9
Free Software Foundation; either version 3 of the License, or (at your
10
option) any later version.
11
12
Octave is distributed in the hope that it will be useful, but WITHOUT
13
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15
for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with Octave; see the file COPYING. If not, see
19
<http://www.gnu.org/licenses/>.
20
21
*/
22
23
#if ! defined (octave_defun_dld_h)
24
#define octave_defun_dld_h 1
25
26
#include "octave-config.h"
27
28
#if defined (octave_defun_h)
29
# error defun.h and defun-dld.h both included in same file!
30
#endif
31
32
#include "
defun-int.h
"
33
34
// Define a builtin function that may be loaded dynamically at run
35
// time.
36
//
37
// If Octave is not configured for dynamic linking of builtin
38
// functions, this is the same as DEFUN, except that it will generate
39
// an extra externally visible function.
40
//
41
// The FORWARD_DECLARE_FUN is for the benefit of the installer function.
42
//
43
// The DECLARE_FUN is for the definition of the function.
44
45
#define DEFUN_DLD(name, args_name, nargout_name, doc) \
46
FORWARD_DECLARE_FUN (name); \
47
DEFINE_FUN_INSTALLER_FUN (name, doc) \
48
DECLARE_FUN (name, args_name, nargout_name)
49
50
#define DEFUNX_DLD(name, fname, gname, args_name, nargout_name, doc) \
51
FORWARD_DECLARE_FUNX (fname); \
52
DEFINE_FUNX_INSTALLER_FUN (name, fname, gname, doc) \
53
DECLARE_FUNX (fname, args_name, nargout_name)
54
55
#endif
defun-int.h
Generated on Wed May 10 2017 15:42:46 for GNU Octave by
1.8.8