PageRenderTime 10ms CodeModel.GetById 8ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/src/shared/common.h

https://bitbucket.org/vivkin/gam3b00bs/
C++ Header | 24 lines | 16 code | 7 blank | 1 comment | 1 complexity | 668c6f52f601479d5ce4f4ca85404d70 MD5 | raw file
 1#pragma once
 2
 3#include "config.h"
 4
 5#define _CRT_SECURE_NO_DEPRECATE 1
 6#define _CRT_SECURE_NO_WARNINGS  1
 7
 8#include "types.h"
 9#include <stdlib.h>
10#include "memory/tlsf/tlsf.h"
11
12#define ASSERT( X )    ( (void) ( (X) || ( __debugbreak(), 1 ) ) )
13#define INLINE         inline
14#define RESTRICT       __restrict
15
16#undef  ALIGN16
17#define ALIGN16        __declspec( align(16) )
18
19#pragma warning( disable: 4324 ) // structure was padded due to __declspec(align())
20#pragma warning( disable: 4127 ) // conditional expression is constant                do{ ... }while(0);
21#pragma warning( disable: 4100 ) // unreferenced formal parameter
22#pragma warning( disable: 4996 ) // fuck is depricated use fuck_s instead
23// TODO: disable more stupid warnings
24