Skip to content

Commit

Permalink
Modernize DECREF (part 10). (#3240)
Browse files Browse the repository at this point in the history
This commit refactors a part of the NRN Python bindings to use `nanobind`
objects manual reference counting. Early parts of the refactoring sequence
focused on DECREF. We've moved on to also modernize other reference
counting logic. The purpose is to address the risk of leaking when exceptions
are thrown and slowly work towards complete RAII-style reference counting.

As part of the refactoring, if needed, the scope of certain variables might be
reduced or given a new name. Additionally, NULL pointers are replaced with
`nullptr`.

This commit doesn't intentionally change reference counts.
  • Loading branch information
1uc authored Nov 27, 2024
1 parent bd89877 commit 5f0675b
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 126 deletions.
Loading

0 comments on commit 5f0675b

Please sign in to comment.