| 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 | /* | 
|---|
| 2 | ContourToNodes.h | 
|---|
| 3 | */ | 
|---|
| 4 |  | 
|---|
| 5 | #ifndef _CONTOURTONODES_H | 
|---|
| 6 | #define _CONTOURTONODES_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 | /* local prototypes: */ | 
|---|
| 20 | void ContourToNodesUsage(void); | 
|---|
| 21 |  | 
|---|
| 22 | #include "../../c/include/globals.h" | 
|---|
| 23 | #include "../../c/modules/modules.h" | 
|---|
| 24 | #include "../../c/Container/Container.h" | 
|---|
| 25 | #include "../../c/shared/shared.h" | 
|---|
| 26 | #include "../../c/issm-binding.h" | 
|---|
| 27 |  | 
|---|
| 28 | #undef __FUNCT__ | 
|---|
| 29 | #define __FUNCT__ "ContourToNodes" | 
|---|
| 30 |  | 
|---|
| 31 | #ifdef _HAVE_MATLAB_MODULES_ | 
|---|
| 32 | /* input macros: */ | 
|---|
| 33 | #define XHANDLE         prhs[0] | 
|---|
| 34 | #define YHANDLE         prhs[1] | 
|---|
| 35 | #define FILENAME        prhs[2] | 
|---|
| 36 | #define EDGEVALUEHANDLE prhs[3] | 
|---|
| 37 |  | 
|---|
| 38 | /* serial output macros: */ | 
|---|
| 39 | #define FLAGS (mxArray**)&plhs[0] | 
|---|
| 40 | #endif | 
|---|
| 41 |  | 
|---|
| 42 | #ifdef _HAVE_PYTHON_MODULES_ | 
|---|
| 43 | /* input macros: */ | 
|---|
| 44 | #define XHANDLE         PyTuple_GetItem(args,0) | 
|---|
| 45 | #define YHANDLE         PyTuple_GetItem(args,1) | 
|---|
| 46 | #define FILENAME        PyTuple_GetItem(args,2) | 
|---|
| 47 | #define EDGEVALUEHANDLE PyTuple_GetItem(args,3) | 
|---|
| 48 |  | 
|---|
| 49 | /* serial output macros: */ | 
|---|
| 50 | #define FLAGS output,0 | 
|---|
| 51 | #endif | 
|---|
| 52 |  | 
|---|
| 53 | /* serial arg counts: */ | 
|---|
| 54 | #undef NLHS | 
|---|
| 55 | #define NLHS 1 | 
|---|
| 56 | #undef NRHS | 
|---|
| 57 | #define NRHS 4 | 
|---|
| 58 |  | 
|---|
| 59 | #endif  /* _CONTOURTONODES_H */ | 
|---|
| 60 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.