-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `Py2NRNString` consisted of (what's now) a `unique_cstr`. The ctor would create the cstr, and `{g,s}et_pyerr` were non-static methods. They needed to check if the cstr as a `nullptr`, but where only ever called after checking that it was a `nullptr`. This commit separates several notions: * Ownership is handled by `unique_cstr`. * An ASCII string is extracted from a Python object using `as_ascii`. * Both `{g,s}et_pyerr` were made static an are independent of each other and from converting a Python object to an (ASCII) C-string. * The `PyErr2NRNString` was removed.
- Loading branch information
Showing
7 changed files
with
85 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.