Blender
V3.3
intern
memutil
intern
MEM_RefCountedC-Api.cpp
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3
8
#include "
MEM_RefCountedC-Api.h
"
9
#include "
MEM_RefCounted.h
"
10
11
int
MEM_RefCountedGetRef
(
MEM_TRefCountedObjectPtr
shared)
12
{
13
return
shared ? ((
MEM_RefCounted
*)shared)->getRef() : 0;
14
}
15
16
int
MEM_RefCountedIncRef
(
MEM_TRefCountedObjectPtr
shared)
17
{
18
return
shared ? ((
MEM_RefCounted
*)shared)->incRef() : 0;
19
}
20
21
int
MEM_RefCountedDecRef
(
MEM_TRefCountedObjectPtr
shared)
22
{
23
return
shared ? ((
MEM_RefCounted
*)shared)->decRef() : 0;
24
}
MEM_RefCountedIncRef
int MEM_RefCountedIncRef(MEM_TRefCountedObjectPtr shared)
Definition:
MEM_RefCountedC-Api.cpp:16
MEM_RefCountedDecRef
int MEM_RefCountedDecRef(MEM_TRefCountedObjectPtr shared)
Definition:
MEM_RefCountedC-Api.cpp:21
MEM_RefCountedGetRef
int MEM_RefCountedGetRef(MEM_TRefCountedObjectPtr shared)
Definition:
MEM_RefCountedC-Api.cpp:11
MEM_RefCountedC-Api.h
MEM_TRefCountedObjectPtr
MEM_TObjectPtr MEM_TRefCountedObjectPtr
Definition:
MEM_RefCountedC-Api.h:16
MEM_RefCounted.h
MEM_RefCounted
Definition:
MEM_RefCounted.h:25
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1