Piles
home
docs
piles
GitHub
RefCnt Pile
version 0.0.1
C++ class implementing a simple reference counting mechanism.
Main Page
Classes
Files
File List
refcnt-private.h
Go to the documentation of this file.
1
10
#ifndef GUARD_REFCNT_PRIVATE_H_INCLUDE
11
#define GUARD_REFCNT_PRIVATE_H_INCLUDE
12
13
#include <refcnt/refcnt-config.h>
14
15
#if 0
16
# define REFCNT_DEBUGM printf
17
#else
18
# define REFCNT_DEBUGM black_hole
19
#endif
20
21
#if 0
22
# define REFCNT_TRACE_ENTRY printf("REFCNT ENTRY %s in %s[%d]\n", __func__, __FILE__, __LINE__)
23
#else
24
# define REFCNT_TRACE_ENTRY
25
#endif
26
27
#if 0
28
# define REFCNT_TRACE_EXIT printf("REFCNT EXIT %s in %s[%d]\n", __func__, __FILE__, __LINE__)
29
#else
30
# define REFCNT_TRACE_EXIT
31
#endif
32
33
34
static
inline
void
black_hole (...)
35
{}
36
37
#endif // GUARD_REFCNT_PRIVATE_H_INCLUDE