Go to the documentation of this file.00001 #ifndef __RAKNET_DEFINES_H
00002 #define __RAKNET_DEFINES_H
00003
00004
00005
00006 #include "RakNetDefinesOverrides.h"
00007
00011 #ifndef __GET_TIME_64BIT
00012 #define __GET_TIME_64BIT 1
00013 #endif
00014
00017 #define _RAKNET_THREADSAFE
00018
00022
00023
00025 #ifndef MAX_ALLOCA_STACK_ALLOCATION
00026 #define MAX_ALLOCA_STACK_ALLOCATION 1048576
00027 #endif
00028
00029
00030
00031
00032 #ifndef _WIN32_WCE
00033 #define USE_WAIT_FOR_MULTIPLE_EVENTS
00034 #endif
00035
00038 #ifndef _USE_RAK_MEMORY_OVERRIDE
00039 #define _USE_RAK_MEMORY_OVERRIDE 1
00040 #endif
00041
00046
00047
00050 #ifndef BITSTREAM_STACK_ALLOCATION_SIZE
00051 #define BITSTREAM_STACK_ALLOCATION_SIZE 256
00052 #endif
00053
00054
00055 #ifndef RAKNET_DEBUG_PRINTF
00056 #define RAKNET_DEBUG_PRINTF printf
00057 #endif
00058
00059
00060 #ifndef RAKNET_RSA_FACTOR_LIMBS
00061 #define RAKNET_RSA_FACTOR_LIMBS 16
00062 #endif
00063
00064
00065 #ifndef NETWORK_ID_SUPPORTS_PEER_TO_PEER
00066 #define NETWORK_ID_SUPPORTS_PEER_TO_PEER 1
00067 #endif
00068
00069
00070
00071
00072
00073
00074 #ifndef MAXIMUM_NUMBER_OF_INTERNAL_IDS
00075 #define MAXIMUM_NUMBER_OF_INTERNAL_IDS 10
00076 #endif
00077
00078 #ifndef RakAssert
00079 #if defined(_XBOX) || defined(X360)
00080
00081 #else
00082 #if defined(_DEBUG)
00083 #define RakAssert(x) assert(x);
00084 #else
00085 #define RakAssert(x)
00086 #endif
00087 #endif
00088 #endif
00089
00091 #ifndef DATAGRAM_MESSAGE_ID_ARRAY_LENGTH
00092 #define DATAGRAM_MESSAGE_ID_ARRAY_LENGTH 512
00093 #endif
00094
00096 #ifndef RESEND_BUFFER_ARRAY_LENGTH
00097 #define RESEND_BUFFER_ARRAY_LENGTH 512
00098 #define RESEND_BUFFER_ARRAY_MASK 511
00099 #endif
00100
00102
00103
00104 #ifndef GET_TIME_SPIKE_LIMIT
00105
00106
00107
00108
00109 #define GET_TIME_SPIKE_LIMIT 0
00110 #endif
00111
00112 #endif // __RAKNET_DEFINES_H