Writing to stdout / stderr from C extensions
kesmit <[email protected]> Tue, 8 Jun 2021 11:23:01 -0500
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <[email protected]> |
I’ve had an issue in my SWIG wrapped C extensions that I’ve never figured out how to make work across multiple scripting languages. If my extension writes something to stdout or stderr, it doesn’t go to the same file object as printing from Python / R / Lua / etc. So any sort of tools that depend on capturing those messages don’t work properly. I was wondering if there was some trick in SWIG that can be used to make writing to stdout / stderr work compatibly with the scripting language being used. Kevin Smith [email protected] _______________________________________________ Swig-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/swig-user