Ice Sheet System Model  4.18
Code documentation
ShpRead.h
Go to the documentation of this file.
1 
5 #ifndef _SHPREAD_H
6 #define _SHPREAD_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__ "ShpRead"
26 
27 #ifdef _HAVE_MATLAB_MODULES_
28 /* serial input macros: */
29 #define SHP_IN prhs[0]
30 /* serial output macros: */
31 #define SHP_OUT (mxArray**)&plhs[0]
32 #endif
33 
34 #ifdef _HAVE_PYTHON_MODULES_
35 /* serial input macros: */
36 #define SHP_IN PyTuple_GetItem(args,0)
37 /* serial output macros: */
38 #define SHP_OUT output,0
39 #endif
40 
41 /* serial arg counts: */
42 #undef NRHS
43 #define NRHS 1
44 #undef NLHS
45 #define NLHS 1
46 
47 #endif