Skip to content

Fix SWIG 4.4 Python return type - #287

Closed
johnbeard wants to merge 1 commit into
sigrokproject:masterfrom
johnbeard:fix-swig44
Closed

Fix SWIG 4.4 Python return type#287
johnbeard wants to merge 1 commit into
sigrokproject:masterfrom
johnbeard:fix-swig44

Conversation

@johnbeard

@johnbeard johnbeard commented Mar 24, 2026

Copy link
Copy Markdown

In SWIG 4.4, there is a multi-step init process. The %init snippet now needs to return an int -1 to satify the return type of SWIG_mod_exec.

Previously, it was a null pointer.


The multi-step change is mentioned in https://github.com/swig/swig/blob/master/RELEASENOTES under SWIG-4.4.0

In SWIG 4.4, there is a multi-step init process. The %init snippet now
needs to return an int -1 to satify the return type of SWIG_mod_exec.

Previously, it was a null pointer.
@johnbeard

Copy link
Copy Markdown
Author

Sorry, I didn't see #280 was the same thing.

@johnbeard johnbeard closed this Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant