source: issm/trunk-jpl/src/modules/EnumToString/EnumToString.h@ 13214

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

CHG: preparing mex module conversion to python

File size: 1.1 KB
Line 
1/*!\file: EnumToString.h
2 * \brief header file for EnumToString module.
3 */
4
5#ifndef _ENUMTOSTRING_H
6#define _ENUMTOSTRING_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/*Header files: */
20#include "../../c/include/globals.h"
21#include "../../c/modules/modules.h"
22#include "../../c/Container/Container.h"
23#include "../../c/shared/shared.h"
24#include "../../c/issm-binding.h"
25
26#undef __FUNCT__
27#define __FUNCT__ "EnumToString"
28
29#ifdef _HAVE_MATLAB_MODULES_
30/* serial input macros: */
31#define ENUMIN (mxArray*)prhs[0]
32/* serial output macros: */
33#define NAME (mxArray**)&plhs[0]
34#endif
35
36#ifdef _HAVE_PYTHON_MODULES_
37/* serial input macros: */
38#define ENUMIN PyTuple_GetItem(args,0)
39/* serial output macros: */
40#define NAME output,0
41#endif
42
43/* serial arg counts: */
44#undef NLHS
45#define NLHS 1
46#undef NRHS
47#define NRHS 1
48
49/* local prototypes: */
50void EnumToStringUsage(void);
51
52#endif /* _TEST_H */
Note: See TracBrowser for help on using the repository browser.