source: issm/trunk-jpl/src/modules/TriaSearch/TriaSearch.h@ 13235

Last change on this file since 13235 was 13235, checked in by Mathieu Morlighem, 13 years ago

CHG: preparing header files for python inclusion

File size: 1.3 KB
Line 
1/*!\file TriaSearch.h
2 */
3
4#ifndef _TRIASEARCH_H
5#define _TRIASEARCH_H
6
7#ifdef HAVE_CONFIG_H
8 #include <config.h>
9#else
10 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
11#endif
12
13/*For python modules: needs to come before header files inclusion*/
14#ifdef _HAVE_PYTHON_
15#define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
16#endif
17
18/* local prototypes: */
19void TriaSearchUsage(void);
20
21#include "../../c/include/globals.h"
22#include "../../c/modules/modules.h"
23#include "../../c/Container/Container.h"
24#include "../../c/shared/shared.h"
25#include "../../c/issm-binding.h"
26
27#undef __FUNCT__
28#define __FUNCT__ "TriaSearch"
29
30#ifdef _HAVE_MATLAB_MODULES_
31/* serial input macros: */
32#define INDEXHANDLE prhs[0]
33#define XHANDLE prhs[1]
34#define YHANDLE prhs[2]
35#define X0HANDLE prhs[3]
36#define Y0HANDLE prhs[4]
37
38/* serial output macros: */
39#define TRIA (mxArray**)&plhs[0]
40#endif
41
42#ifdef _HAVE_PYTHON_MODULES_
43/* serial input macros: */
44#define INDEXHANDLE PyTuple _GetItem(args,0)
45#define XHANDLE PyTuple _GetItem(args,1)
46#define YHANDLE PyTuple _GetItem(args,2)
47#define X0HANDLE PyTuple _GetItem(args,3)
48#define Y0HANDLE PyTuple _GetItem(args,4)
49
50/* serial output macros: */
51#define TRIA output,0
52#endif
53
54/* serial arg counts: */
55#undef NLHS
56#define NLHS 1
57#undef NRHS
58#define NRHS 5
59
60#endif
Note: See TracBrowser for help on using the repository browser.