Blender V4.3
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
10#include "MEM_RefCounted.h"
11
13{
14 return shared ? ((MEM_RefCounted *)shared)->getRef() : 0;
15}
16
18{
19 return shared ? ((MEM_RefCounted *)shared)->incRef() : 0;
20}
21
23{
24 return shared ? ((MEM_RefCounted *)shared)->decRef() : 0;
25}
int MEM_RefCountedIncRef(MEM_TRefCountedObjectPtr shared)
int MEM_RefCountedDecRef(MEM_TRefCountedObjectPtr shared)
int MEM_RefCountedGetRef(MEM_TRefCountedObjectPtr shared)
MEM_TObjectPtr MEM_TRefCountedObjectPtr