57 lines
1.6 KiB
C
57 lines
1.6 KiB
C
////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Crytek Engine Source File.
|
|
// Copyright (C), Crytek Studios, 2002.
|
|
// -------------------------------------------------------------------------
|
|
// File name: Win32specific.h
|
|
// Version: v1.00
|
|
// Created: 31/03/2003 by Sergiy.
|
|
// Compilers: Visual Studio.NET
|
|
// Description: Specific to Win32 declarations, inline functions etc.
|
|
// -------------------------------------------------------------------------
|
|
// History:
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////
|
|
#ifndef _CRY_COMMON_WIN32_SPECIFIC_HDR_
|
|
#define _CRY_COMMON_WIN32_SPECIFIC_HDR_
|
|
|
|
#ifdef __cplusplus
|
|
#ifdef _DEBUG
|
|
#include <crtdbg.h>
|
|
#endif
|
|
// checks if the heap is valid in debug; in release, this function shouldn't be called
|
|
// returns non-0 if it's valid and 0 if not valid
|
|
inline int IsHeapValid ()
|
|
{
|
|
#ifdef _DEBUG
|
|
return _CrtCheckMemory();
|
|
#else
|
|
return true;
|
|
#endif
|
|
}
|
|
#endif
|
|
#pragma warning (disable : 4267)
|
|
|
|
typedef signed char int8;
|
|
typedef signed short int16;
|
|
typedef signed long int32;
|
|
typedef signed __int64 int64;
|
|
typedef unsigned char uint8;
|
|
typedef unsigned short uint16;
|
|
typedef unsigned long uint32;
|
|
typedef unsigned __int64 uint64;
|
|
|
|
typedef float f32;
|
|
typedef double f64;
|
|
|
|
// old-style (will be removed soon)
|
|
typedef signed char s8;
|
|
typedef signed short s16;
|
|
typedef signed long s32;
|
|
typedef signed __int64 s64;
|
|
typedef unsigned char u8;
|
|
typedef unsigned short u16;
|
|
typedef unsigned long u32;
|
|
typedef unsigned __int64 u64;
|
|
|
|
#endif |