Ice Sheet System Model
4.18
Code documentation
src
wrappers
matlab
io
CheckNumMatlabArguments.cpp
Go to the documentation of this file.
1
5
#include "
./matlabio.h
"
6
7
int
CheckNumMatlabArguments
(
int
nlhs,
int
NLHS
,
int
nrhs,
int
NRHS
,
const
char
* THISFUNCTION,
void
(*
function
)(
void
)){
8
9
/*checks on arguments on the matlab side: */
10
if
(nrhs==0 && nlhs==0) {
11
/*unless NLHS=0 and NRHS=0, we are just asking for documentation: */
12
if
(
NRHS
==0 &&
NLHS
==0)
return
1;
13
/* special case: */
14
function
();
15
_error_
(
"usage: see above"
);
16
}
17
else
if
(nlhs!=
NLHS
|| nrhs!=
NRHS
) {
18
function
();
19
_error_
(
"usage error."
);
20
}
21
return
1;
22
}
NRHS
#define NRHS
Definition:
BamgConvertMesh.h:52
CheckNumMatlabArguments
int CheckNumMatlabArguments(int nlhs, int NLHS, int nrhs, int NRHS, const char *THISFUNCTION, void(*function)(void))
Definition:
CheckNumMatlabArguments.cpp:7
matlabio.h
NLHS
#define NLHS
Definition:
BamgConvertMesh.h:50
_error_
#define _error_(StreamArgs)
Definition:
exceptions.h:49
Generated on Thu Jul 2 2020 08:09:22 for Ice Sheet System Model by
1.8.19