OpenBarnyard
 
Loading...
Searching...
No Matches
Verify.h
Go to the documentation of this file.
1#pragma once
2#include "Defines.h"
3#include "Typedefs.h"
4
5// Check if sizes of the integer types are correct
6TSTATICASSERT( sizeof( TINT8 ) == 1 );
7TSTATICASSERT( sizeof( TUINT8 ) == 1 );
8TSTATICASSERT( sizeof( TINT16 ) == 2 );
9TSTATICASSERT( sizeof( TUINT16 ) == 2 );
10TSTATICASSERT( sizeof( TINT32 ) == 4 );
11TSTATICASSERT( sizeof( TUINT32 ) == 4 );
12TSTATICASSERT( sizeof( TINT64 ) == 8 );
13TSTATICASSERT( sizeof( TUINT64 ) == 8 );
14
15// x64 is not supported
16//TSTATICASSERT( sizeof( void* ) == 4 );
17
18#ifndef TOSHI_SKU_WINDOWS
19# error At the moment, Windows is the only supported OS
20#endif
#define TSTATICASSERT(...)
Definition Defines.h:67
uint16_t TUINT16
Definition Typedefs.h:15
int32_t TINT32
Definition Typedefs.h:12
uint64_t TUINT64
Definition Typedefs.h:11
int16_t TINT16
Definition Typedefs.h:14
uint8_t TUINT8
Definition Typedefs.h:17
uint32_t TUINT32
Definition Typedefs.h:13
int64_t TINT64
Definition Typedefs.h:10
int8_t TINT8
Definition Typedefs.h:16