File: module_ext.i.in

package info (click to toggle)
insighttoolkit5 5.2.1-5%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 550,276 kB
  • sloc: cpp: 757,652; ansic: 586,696; xml: 43,107; fortran: 34,788; python: 20,439; sh: 4,167; lisp: 2,158; tcl: 993; java: 362; yacc: 338; asm: 208; perl: 200; makefile: 197; csh: 195; lex: 184; javascript: 98; pascal: 71; ruby: 10
file content (14 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
%{
// Workaround for undefined SWIGPY_SLICE_ARG with swig 2.0.3 and 2.0.4
// If removed, fails also with swig 3.0, so this has not been fixed ?
// Needs to be investigated
#include <iostream>

#if PY_VERSION_HEX >= 0x03020000
# define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj))
#else
# define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj))
#endif
%}

@ITK_WRAP_PYTHON_SWIG_EXT@