Blender
V4.3
intern
memutil
intern
MEM_RefCountedC-Api.cpp
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#include "
MEM_RefCountedC-Api.h
"
10
#include "
MEM_RefCounted.h
"
11
12
int
MEM_RefCountedGetRef
(
MEM_TRefCountedObjectPtr
shared)
13
{
14
return
shared ? ((
MEM_RefCounted
*)shared)->getRef() : 0;
15
}
16
17
int
MEM_RefCountedIncRef
(
MEM_TRefCountedObjectPtr
shared)
18
{
19
return
shared ? ((
MEM_RefCounted
*)shared)->incRef() : 0;
20
}
21
22
int
MEM_RefCountedDecRef
(
MEM_TRefCountedObjectPtr
shared)
23
{
24
return
shared ? ((
MEM_RefCounted
*)shared)->decRef() : 0;
25
}
MEM_RefCountedIncRef
int MEM_RefCountedIncRef(MEM_TRefCountedObjectPtr shared)
Definition
MEM_RefCountedC-Api.cpp:17
MEM_RefCountedDecRef
int MEM_RefCountedDecRef(MEM_TRefCountedObjectPtr shared)
Definition
MEM_RefCountedC-Api.cpp:22
MEM_RefCountedGetRef
int MEM_RefCountedGetRef(MEM_TRefCountedObjectPtr shared)
Definition
MEM_RefCountedC-Api.cpp:12
MEM_RefCountedC-Api.h
MEM_TRefCountedObjectPtr
MEM_TObjectPtr MEM_TRefCountedObjectPtr
Definition
MEM_RefCountedC-Api.h:17
MEM_RefCounted.h
MEM_RefCounted
Definition
MEM_RefCounted.h:25
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0