(handle: int)
| 28 | |
| 29 | |
| 30 | def free_hostfunc_user_data(handle: int): |
| 31 | if handle not in HOSTFUNC_USER_DATA_HANDLES: |
| 32 | raise ValueError(f"Hostfunc user data handle {handle} not found.") |
| 33 | bindings.free_hostfunc_user_data(handle) |
| 34 | HOSTFUNC_USER_DATA_HANDLES.remove(handle) |
| 35 | |
| 36 | |
| 37 | def free_all_hostfunc_user_data(): |