BFLibCPP 0.1
CPP Library
Loading...
Searching...
No Matches
release.hpp File Reference
#include "object.hpp"
Include dependency graph for release.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BFRelease(x)
 

Macro Definition Documentation

◆ BFRelease

#define BFRelease ( x)
Value:
if (x != 0) {\
BF::Object * obj = (BF::Object *) x;\
int rc = BF::Object::retainCount(obj);\
BF::Object::release(obj);\
if (rc == 1) x = 0;\
}\
Definition object.hpp:21
static int retainCount(Object *obj)
Definition object.cpp:51

author: brando date: 2/2/24