Clapkit
Loading...
Searching...
No Matches
ckUtils.cpp File Reference
#include "ckUtils.h"
#include <Appearance.h>
#include <Gestalt.h>
#include <Timer.h>

Functions

unsigned char * __CKC2P (const char *src, const char *func, int line, const char *file)
 
char * __CKP2C (const unsigned char *src, const char *func, int line, const char *file)
 
void __CKDebugLog (int level, const char *s,...)
 
void CKConsolePrint (const char *toPrint)
 
void __CKWriteToExitFile (const char *s,...)
 
void CKPrintExitDebugData ()
 
void CKPrintProfileData ()
 
bool CKHasAppearanceManager ()
 Checks if Appearance Manager is present (8.x+)
 
UInt32 CKMillis ()
 Return the number of milliseconds since computer booted up.
 

Variables

std::vector< CKProfilerData * > _profilerData
 
bool _profilerDataInit = false
 
short __eddf = -1
 

Function Documentation

◆ __CKC2P()

unsigned char * __CKC2P ( const char *  src,
const char *  func,
int  line,
const char *  file 
)

Convert a C-style string to Pascal string that most Macintosh Toolbox calls require.

◆ __CKDebugLog()

void __CKDebugLog ( int  level,
const char *  s,
  ... 
)

Print to console a warning, log or an error.

Level 0 => Log Level 1 => Warning Level 2 => Error Level 3 => Fatal Error

◆ __CKP2C()

char * __CKP2C ( const unsigned char *  src,
const char *  func,
int  line,
const char *  file 
)

Converts Pascal string to C string.

◆ __CKWriteToExitFile()

void __CKWriteToExitFile ( const char *  s,
  ... 
)

◆ CKConsolePrint()

void CKConsolePrint ( const char *  toPrint)

Print to wherever the OS expects us to print.

◆ CKPrintExitDebugData()

void CKPrintExitDebugData ( )

◆ CKPrintProfileData()

void CKPrintProfileData ( )

Variable Documentation

◆ __eddf

short __eddf = -1

◆ _profilerData

std::vector<CKProfilerData*> _profilerData

◆ _profilerDataInit

bool _profilerDataInit = false