Last change
on this file since 13213 was 13213, checked in by Mathieu Morlighem, 13 years ago |
CHG: preparing mex module conversion to python
|
File size:
1.1 KB
|
Rev | Line | |
---|
[8223] | 1 | /*!\file: EnumToString.h
|
---|
| 2 | * \brief header file for EnumToString module.
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #ifndef _ENUMTOSTRING_H
|
---|
| 6 | #define _ENUMTOSTRING_H
|
---|
| 7 |
|
---|
[13034] | 8 | #ifdef HAVE_CONFIG_H
|
---|
[13211] | 9 | #include <config.h>
|
---|
[13034] | 10 | #else
|
---|
[13211] | 11 | #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
|
---|
[13034] | 12 | #endif
|
---|
[8223] | 13 |
|
---|
[13213] | 14 | /*For python modules: needs to come before header files inclusion*/
|
---|
[13034] | 15 | #ifdef _HAVE_PYTHON_
|
---|
| 16 | #define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
|
---|
| 17 | #endif
|
---|
| 18 |
|
---|
| 19 | /*Header files: */
|
---|
[11933] | 20 | #include "../../c/include/globals.h"
|
---|
[8223] | 21 | #include "../../c/modules/modules.h"
|
---|
| 22 | #include "../../c/Container/Container.h"
|
---|
| 23 | #include "../../c/shared/shared.h"
|
---|
[12013] | 24 | #include "../../c/issm-binding.h"
|
---|
[8223] | 25 |
|
---|
[13034] | 26 | #ifdef _HAVE_MATLAB_MODULES_
|
---|
[8223] | 27 | /* serial input macros: */
|
---|
| 28 | #define ENUMIN (mxArray*)prhs[0]
|
---|
| 29 | /* serial output macros: */
|
---|
| 30 | #define NAME (mxArray**)&plhs[0]
|
---|
[13034] | 31 | #endif
|
---|
[8223] | 32 |
|
---|
[13034] | 33 | #ifdef _HAVE_PYTHON_MODULES_
|
---|
| 34 | /* serial input macros: */
|
---|
| 35 | #define ENUMIN PyTuple_GetItem(args,0)
|
---|
| 36 | /* serial output macros: */
|
---|
| 37 | #define NAME output,0
|
---|
| 38 | #endif
|
---|
| 39 |
|
---|
[8223] | 40 | /* serial arg counts: */
|
---|
| 41 | #undef NLHS
|
---|
| 42 | #define NLHS 1
|
---|
| 43 | #undef NRHS
|
---|
| 44 | #define NRHS 1
|
---|
| 45 |
|
---|
| 46 | #undef __FUNCT__
|
---|
| 47 | #define __FUNCT__ "EnumToString"
|
---|
| 48 |
|
---|
[13034] | 49 | /* local prototypes: */
|
---|
| 50 | void EnumToStringUsage(void);
|
---|
| 51 |
|
---|
[8223] | 52 | #endif /* _TEST_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.