| Last change
 on this file since 14948 was             14948, checked in by Eric.Larour, 12 years ago | 
        
          | 
CHG: moved globals.h into src/c/main, where it makes more sense, as it's only used to build wrappers or the main issm.exe and krigging.exe
 | 
        
          | File size:
            1.0 KB | 
      
      
| Rev | Line |  | 
|---|
| [8223] | 1 | /*!\file:  StringToEnum.h | 
|---|
|  | 2 | * \brief header file for StringToEnum module. | 
|---|
|  | 3 | */ | 
|---|
|  | 4 |  | 
|---|
|  | 5 | #ifndef _STRINGTOENUM_H | 
|---|
|  | 6 | #define _STRINGTOENUM_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: */ | 
|---|
| [14776] | 20 | #include "../bindings.h" | 
|---|
| [14948] | 21 | #include "../../c/main/globals.h" | 
|---|
| [8223] | 22 | #include "../../c/modules/modules.h" | 
|---|
|  | 23 | #include "../../c/Container/Container.h" | 
|---|
|  | 24 | #include "../../c/shared/shared.h" | 
|---|
| [13214] | 25 |  | 
|---|
|  | 26 | #undef __FUNCT__ | 
|---|
|  | 27 | #define __FUNCT__  "StringToEnum" | 
|---|
| [8223] | 28 |  | 
|---|
| [13034] | 29 | #ifdef _HAVE_MATLAB_MODULES_ | 
|---|
| [8223] | 30 | /* serial input macros: */ | 
|---|
|  | 31 | #define NAME (mxArray*)prhs[0] | 
|---|
|  | 32 | /* serial output macros: */ | 
|---|
|  | 33 | #define ENUMOUT (mxArray**)&plhs[0] | 
|---|
| [13034] | 34 | #endif | 
|---|
| [8223] | 35 |  | 
|---|
| [13034] | 36 | #ifdef _HAVE_PYTHON_MODULES_ | 
|---|
|  | 37 | /* serial input macros: */ | 
|---|
|  | 38 | #define NAME PyTuple_GetItem(args,0) | 
|---|
|  | 39 | /* serial output macros: */ | 
|---|
|  | 40 | #define ENUMOUT output,0 | 
|---|
|  | 41 | #endif | 
|---|
|  | 42 |  | 
|---|
| [8223] | 43 | /* serial arg counts: */ | 
|---|
|  | 44 | #undef NLHS | 
|---|
|  | 45 | #define NLHS  1 | 
|---|
|  | 46 | #undef NRHS | 
|---|
|  | 47 | #define NRHS  1 | 
|---|
|  | 48 |  | 
|---|
|  | 49 | #endif  /* _TEST_H */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.