diff options
Diffstat (limited to '')
-rw-r--r-- | src/cachable.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cachable.h b/src/cachable.h index 529da6f..a54c55b 100644 --- a/src/cachable.h +++ b/src/cachable.h | |||
@@ -16,4 +16,13 @@ namespace Bu | |||
16 | template<> long getCacheId<Cachable>( const Cachable *o ); | 16 | template<> long getCacheId<Cachable>( const Cachable *o ); |
17 | }; | 17 | }; |
18 | 18 | ||
19 | #define DECL_CACHABLE( name ) \ | ||
20 | namespace Bu { template<> long getCacheId<name>( const name *o ); } | ||
21 | |||
22 | #define DEF_CACHABLE( name ) \ | ||
23 | template<> long Bu::getCacheId<name>( const name *o ) \ | ||
24 | { \ | ||
25 | return getCacheId<Bu::Cachable>( (Bu::Cachable *)o ); \ | ||
26 | } | ||
27 | |||
19 | #endif | 28 | #endif |