Blender  V3.3
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 
12 {
13  return shared ? ((MEM_RefCounted *)shared)->getRef() : 0;
14 }
15 
17 {
18  return shared ? ((MEM_RefCounted *)shared)->incRef() : 0;
19 }
20 
22 {
23  return shared ? ((MEM_RefCounted *)shared)->decRef() : 0;
24 }
int MEM_RefCountedIncRef(MEM_TRefCountedObjectPtr shared)
int MEM_RefCountedDecRef(MEM_TRefCountedObjectPtr shared)
int MEM_RefCountedGetRef(MEM_TRefCountedObjectPtr shared)
MEM_TObjectPtr MEM_TRefCountedObjectPtr