Commit e07b4a3
COMP: Use verbatim %{ %} block for Image __array__ pythoncode
The %pythoncode { ... } form (single brace) processes its contents
through the SWIG preprocessor, so '#' comments at the start of lines
are misinterpreted as preprocessor directives:
pyBase.i:702: Error: Unknown SWIG preprocessor directive: Explicit
pyBase.i:706: Error: Unknown SWIG preprocessor directive: Zero
Switch to %pythoncode %{ ... %} (verbatim block) so the embedded Python
code is passed through unchanged. This matches the form already used
by DECL_PYTHON_POINTSETBASE_CLASS and the existing __buffer__ block.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5da7fe7 commit e07b4a3
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
682 | | - | |
| 682 | + | |
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
| 720 | + | |
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| |||
0 commit comments