mirror of
https://github.com/johndoe6345789/typthon.git
synced 2026-04-24 13:45:05 +00:00
Fix Py->Ty prefix inconsistencies in crossinterp, specialize, and atexit
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -290,9 +290,9 @@ atexit_unregister(TyObject *module, TyObject *func)
|
||||
{
|
||||
struct atexit_state *state = get_atexit_state();
|
||||
int result;
|
||||
Py_BEGIN_CRITICAL_SECTION(state->callbacks);
|
||||
Ty_BEGIN_CRITICAL_SECTION(state->callbacks);
|
||||
result = atexit_unregister_locked(state->callbacks, func);
|
||||
Py_END_CRITICAL_SECTION();
|
||||
Ty_END_CRITICAL_SECTION();
|
||||
return result < 0 ? NULL : Ty_None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user