![]() |
ooc
1.3c
Object Oriented tollkit fo ANSI C
|
RefCounted class - a reference counted Object. More...
#include "ooc.h"
Macros | |
| #define | refcnt_inc(object) ( refcnt_addref( (RefCounted) object ), object ) |
| Increments the reference counter. More... | |
Functions | |
| RefCounted | refcnt_addref (RefCounted object) |
| Increments the reference counter. More... | |
RefCounted class - a reference counted Object.
RefCounted serves as a base class for reference counted Objects.
| #define refcnt_inc | ( | object | ) | ( refcnt_addref( (RefCounted) object ), object ) |
Increments the reference counter.
This is a macro version, which is more convenient since there is no need for manual type casting.
| object | The Object to be counted. |
| RefCounted refcnt_addref | ( | RefCounted | object | ) |
Increments the reference counter.
| object | The Object to be counted. |