We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca45fd commit 8e8d7aaCopy full SHA for 8e8d7aa
custom.rs
@@ -4,6 +4,7 @@
4
/// # Safety
5
/// If the reference count is decremented to zero, the object is freed and `objPtr` turns into a null pointer.
6
/// If objPtr is null, UB occurs.
7
+#[inline(always)]
8
pub unsafe fn Tcl_DecrRefCount(objPtr: *mut Tcl_Obj) {
9
let mut obj = unsafe { *objPtr };
10
obj.refCount -= 1;
@@ -19,6 +20,7 @@ pub unsafe fn Tcl_DecrRefCount(objPtr: *mut Tcl_Obj) {
19
20
21
/// If [`Tcl_DecrRefCount`] is not called and the pointer is dropped, the object will be leaked.
22
23
24
pub unsafe fn Tcl_IncrRefCount(objPtr: *mut Tcl_Obj) {
25
26
obj.refCount += 1;
0 commit comments