BFLibCPP
0.1
CPP Library
Loading...
Searching...
No Matches
release.hpp
Go to the documentation of this file.
1
6
#ifndef RELEASE_HPP
7
#define RELEASE_HPP
8
9
#include "
object.hpp
"
10
11
#define BFRelease(x) if (x != 0) {\
12
BF::Object * obj = (BF::Object *) x;\
13
int rc = BF::Object::retainCount(obj);\
14
BF::Object::release(obj);\
15
if (rc == 1) x = 0;\
16
}\
17
18
#endif
// RELEASE_HPP
19
object.hpp
libs
bflibcpp
src
release.hpp
Generated by
1.11.0