|
Last change
on this file since 20500 was 20500, checked in by Mathieu Morlighem, 10 years ago |
|
merged trunk-jpl and trunk for revision 20497
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | /*!\file: IssmConfig.h
|
|---|
| 2 | * \brief header file for IssmConfig module.
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | #ifndef _ISSMCONFIG_H
|
|---|
| 6 | #define _ISSMCONFIG_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 "../bindings.h"
|
|---|
| 21 | #include "../../c/main/globals.h"
|
|---|
| 22 | #include "../../c/shared/Enum/Enum.h"
|
|---|
| 23 | #include "../../c/shared/shared.h"
|
|---|
| 24 |
|
|---|
| 25 | #undef __FUNCT__
|
|---|
| 26 | #define __FUNCT__ "IssmConfig"
|
|---|
| 27 |
|
|---|
| 28 | #ifdef _HAVE_MATLAB_MODULES_
|
|---|
| 29 | /* serial input macros: */
|
|---|
| 30 | #define NAME (mxArray*)prhs[0]
|
|---|
| 31 | /* serial output macros: */
|
|---|
| 32 | #define VALUE (mxArray**)&plhs[0]
|
|---|
| 33 | #define SVALUE (mxArray**)&plhs[0]
|
|---|
| 34 | #endif
|
|---|
| 35 |
|
|---|
| 36 | #ifdef _HAVE_PYTHON_MODULES_
|
|---|
| 37 | /* serial input macros: */
|
|---|
| 38 | #define NAME PyTuple_GetItem(args,0)
|
|---|
| 39 | /* serial output macros: */
|
|---|
| 40 | #define VALUE output,0
|
|---|
| 41 | #define SVALUE output,0
|
|---|
| 42 | #endif
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 | #ifdef _HAVE_JAVASCRIPT_MODULES_
|
|---|
| 46 | /* serial input macros: */
|
|---|
| 47 | #define NAME string
|
|---|
| 48 | /* serial output macros: */
|
|---|
| 49 | #define VALUE pvalue
|
|---|
| 50 | #define SVALUE psvalue
|
|---|
| 51 | #define WRAPPER(modulename) extern "C" { int IssmConfigModule(double* pvalue, char** psvalue, char* string)
|
|---|
| 52 | #endif
|
|---|
| 53 |
|
|---|
| 54 | /* serial arg counts: */
|
|---|
| 55 | #undef NLHS
|
|---|
| 56 | #define NLHS 1
|
|---|
| 57 | #undef NRHS
|
|---|
| 58 | #define NRHS 1
|
|---|
| 59 |
|
|---|
| 60 | #endif /* _TEST_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.