Main Page Modules Namespaces C++ Classes Compound List File List Index
tnlPlatform.h File Reference

tnlPlatform.h File Reference

#include <string.h>
#include <stdlib.h>
#include "tnlTypes.h"

Namespaces

namespace  TNL
namespace  TNL::Platform

Defines

#define TIME_BLOCK(name, block)   { S64 st = Platform::getHighPrecisionTimerValue(); {block} S64 delta = Platform::getHighPrecisionTimerValue() - st; F64 ms = Platform::getHighPrecisionMilliseconds(delta); logprintf("Timer: %s Elapsed: %g ms", #name, ms); }
#define TNL_DEBUGBREAK()   Platform::debugBreak();
 Macro to do in-line debug breaks, used for asserts. Does inline assembly where appropriate.

#define TNL_CHECK_HEAP()   { bool status = TNL::Platform::checkHeap(); if(!status) TNL_DEBUGBREAK(); }
#define QSORT_CALLBACK   FN_CDECL


Define Documentation

#define TIME_BLOCK name,
block   )     { S64 st = Platform::getHighPrecisionTimerValue(); {block} S64 delta = Platform::getHighPrecisionTimerValue() - st; F64 ms = Platform::getHighPrecisionMilliseconds(delta); logprintf("Timer: %s Elapsed: %g ms", #name, ms); }
 

 
#define TNL_DEBUGBREAK  )     Platform::debugBreak();
 

Macro to do in-line debug breaks, used for asserts. Does inline assembly where appropriate.

 
#define TNL_CHECK_HEAP  )     { bool status = TNL::Platform::checkHeap(); if(!status) TNL_DEBUGBREAK(); }
 

#define QSORT_CALLBACK   FN_CDECL