|
MemCacheClient
|
00001 00006 #ifndef INCLUDED_Matilda 00007 #define INCLUDED_Matilda 00008 00009 #if defined(_MSC_VER) && (_MSC_VER >= 1020) 00010 # pragma once 00011 #endif 00012 00013 // get rid of Windows/Linux inconsistencies 00014 #ifdef _WIN32 00015 # define snprintf _snprintf 00016 # define PRIu64 "I64u" 00017 #else 00018 # include <stdint.h> 00019 # define PRIu64 "llu" 00020 #endif 00021 00022 // use your preferred assertion library (e.g. boost) 00023 #include <assert.h> 00024 #define CR_ASSERT(x) assert(x) 00025 00026 // used to export classes from DLLs on Windows 00027 #define CROSSBASE_CLASS_API 00028 00029 // internal logging class, this will be optimized out in release builds 00030 #define CLERROR 0 00031 #define CLINFO 0 00032 #define CLDEBUG 0 00033 #define CLULTRA 0 00034 struct ClTrace { 00035 inline ClTrace() { } 00036 inline ClTrace(const char *) { } 00037 inline ClTrace(const ClTrace &) { } 00038 inline void Trace(int,...) { } 00039 inline bool IsThisModuleTracing(int) { return false; } 00040 }; 00041 00042 // internal UTF-8/UTF-16 string classes redefined to STL 00043 #define NarrowString std::string 00044 #define WideString std::wstring 00045 00046 // internal cross platform library function 00047 namespace xplatform { 00048 unsigned long GetCurrentTickCount(); 00049 } 00050 00051 // close a socket on exec() used on Linux 00052 #define setCloseOnExec(x) 00053 00054 #endif // INCLUDED_Matilda
1.7.3