25#define __FILENAME__ __FILE__
27#define __FILENAME__ ""
34#define CKMSToTicks(milliseconds) ((int)((milliseconds) / 16.66))
45#define CKLog(s, ...) __CKDebugLog(0, s __VA_OPT__(, ) __VA_ARGS__)
46#define CKDebugLog(l, s, ...) __CKDebugLog(l, s __VA_OPT__(, ) __VA_ARGS__)
53#define CKLog(s, ...) \
56#define CKDebugLog(l, s, ...) \
61unsigned char*
__CKC2P(
const char* src,
const char* func,
int line,
const char* file);
62char*
__CKP2C(
const unsigned char* src,
const char* func,
int line,
const char* file);
70#define CKC2P(s) __CKC2P(s, __func__, __LINE__, __FILENAME__)
77#define CKP2C(s) __CKP2C(s, __func__, __LINE__, __FILENAME__)
83#define CKC2P(s) __CKC2P(s, "", 0, "")
90#define CKP2C(s) __CKP2C(s, "", 0, "")
112 this->name = (
char*)dlmalloc(strlen(fName) + 1);
113 strcpy(this->name, fName);
115 this->start = TickCount();
118 long time = (TickCount() - this->start);
126 if (strcmp(d->name, this->name) == 0) {
127 d->totalTime += time;
134 nd->
name = (
char*)dlmalloc(strlen(this->name) + 1);
135 strcpy(nd->
name, this->name);
150#define CKPROFILE CKScopeProfiler __p(__PRETTY_FUNCTION__);
void __CKWriteToExitFile(const char *s,...)
Definition ckUtils.cpp:164
std::vector< CKProfilerData * > _profilerData
Definition ckUtils.cpp:20
void __CKDebugLog(int level, const char *s,...)
Definition ckUtils.cpp:77
void CKPrintExitDebugData()
Definition ckUtils.cpp:198
bool _profilerDataInit
Definition ckUtils.cpp:21
void CKConsolePrint(const char *toPrint)
Definition ckUtils.cpp:143
char * __CKP2C(const unsigned char *src, const char *func, int line, const char *file)
Definition ckUtils.cpp:54
unsigned char * __CKC2P(const char *src, const char *func, int line, const char *file)
Definition ckUtils.cpp:28
void CKPrintProfileData()
Definition ckUtils.cpp:229
long totalTime
Definition ckUtils.h:104
int calls
Definition ckUtils.h:105
char * name
Definition ckUtils.h:103
~CKScopeProfiler()
Definition ckUtils.h:117
CKScopeProfiler(const char *fName)
Definition ckUtils.h:111
bool CKHasAppearanceManager()
Checks if Appearance Manager is present (8.x+)
Definition ckUtils.cpp:257
UInt32 CKMillis()
Return the number of milliseconds since computer booted up.
Definition ckUtils.cpp:268