#ifndef CACHE_SETUP #define CACHE_SETUP //Enables cache in n3c #define ENABLECACHE //Enables cache //#define CACHE_TIMER_HACK #define CACHE_OPENTCP_HACK //---------- #ifdef ENABLECACHE #define CACHEON cacheEnable(); #define CACHEOFF cacheDisable(); #else #define CACHEON {} #define CACHEOFF {} #endif // #ifdef CACHE_TIMER_HACK and ifdef CACHE_OPENTCP_HAC // #warning "Enabeling both CACHE_TIMER_HACK and CACHE_OPENTCP_HACK is a bad idea; good luck." // #endif #ifdef CACHE_TIMER_HACK #define CACHEON_TIMER_HACK CACHEON; #define CACHEOFF_TIMER_HACK CACHEOFF; #else #define CACHEON_TIMER_HACK {} #define CACHEOFF_TIMER_HACK {} #endif #ifdef CACHE_OPENTCP_HACK #define CACHEON_OPENTCP_HACK CACHEON; #define CACHEOFF_OPENTCP_HACK CACHEOFF; #else #define CACHEON_OPENTCP_HACK {} #define CACHEOFF_OPENTCP_HACK {} #endif #endif