Ice Sheet System Model  4.18
Code documentation
ContourToNodes.h
Go to the documentation of this file.
1 /*
2  ContourToNodes.h
3 */
4 
5 #ifndef _CONTOURTONODES_H
6 #define _CONTOURTONODES_H
7 
8 #ifdef HAVE_CONFIG_H
9  #include <config.h>
10 #else
11  #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
12 #endif
13 
14 /*For python modules: needs to come before header files inclusion*/
15 #ifdef _HAVE_PYTHON_
16 #define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
17 #endif
18 
19 #include "../bindings.h"
20 #include "../../c/main/globals.h"
21 #include "../../c/modules/modules.h"
22 #include "../../c/shared/shared.h"
23 
24 #undef __FUNCT__
25 #define __FUNCT__ "ContourToNodes"
26 
27 #ifdef _HAVE_MATLAB_MODULES_
28 /* input macros: */
29 #define XHANDLE prhs[0]
30 #define YHANDLE prhs[1]
31 #define CONTOUR prhs[2]
32 #define EDGEVALUE prhs[3]
33 
34 /* serial output macros: */
35 #define FLAGS (mxArray**)&plhs[0]
36 #endif
37 
38 #ifdef _HAVE_PYTHON_MODULES_
39 /* input macros: */
40 #define XHANDLE PyTuple_GetItem(args,0)
41 #define YHANDLE PyTuple_GetItem(args,1)
42 #define CONTOUR PyTuple_GetItem(args,2)
43 #define EDGEVALUE PyTuple_GetItem(args,3)
44 
45 /* serial output macros: */
46 #define FLAGS output,0
47 #endif
48 
49 /* serial arg counts: */
50 #undef NLHS
51 #define NLHS 1
52 #undef NRHS
53 #define NRHS 4
54 
55 #endif /* _CONTOURTONODES_H */