⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 projectx_common.h

📁 MMORPG游戏服务器端架构及函数
💻 H
字号:

#ifndef _PROJECTX_COMMON_
#define _PROJECTX_COMMON_

#define  _WIN32_WINNT	0x0501
#define  WINVER			0x0501
#define  _WIN32_IE		0x0601


typedef unsigned char byte;
typedef unsigned short u_short;
 





#ifdef USE_INLINE
	#define MS_INLINE	inline
#else
	#define MS_INLINE
#endif	//USE_INLINE



#ifdef DEBUG
#define USE_MEMORY_TRANCE
#else
#undef USE_MEMORY_TRANCE
#endif //DEBUG


#ifdef USE_MEMORY_TRANCE
#define ms_malloc(x)	ms_debug_malloc(__FUNCTION__,__LINE__,__FILE__,x)
#define ms_free(x)		ms_debug_free(__FUNCTION__,__LINE__,__FILE__,x)
#else
#define ms_malloc(x)	malloc(x)
#define ms_free(x)		free(x)
#endif //USE_MEMORY_TRANCE

#define WIN32_LEAN_AND_MEAN 		

#pragma warning(disable :4003) //宏的实参不足
#pragma warning(disable :4018) //有符号/无符号不匹配
#pragma warning(disable :4715) //不是所有的控件路径都返回值
#pragma warning(disable :4101) //未引用的局部变量
#pragma warning(disable :4312) //“类型转换” : 从“LONG”转换到更大的“HINSTANCE”
#pragma warning(disable :4244) //“函数” : 从“LPARAM”转换到“LONG”,可能丢失数据
#pragma warning(disable :4013) //“malloc”未定义;假设外部返回 int
#pragma warning(disable :4267) //从“size_t”转换到“int”,可能丢失数据
#pragma warning(disable :4047) //“=” : “HANDLE”与“int”的间接级别不同
#pragma warning(disable :4028) //形参 2 与声明不同
#pragma warning(disable :4113) //参数列表不同
#pragma warning(disable :4133) //类型不兼容
#pragma warning(disable :4311) //类型转换,内容截断



#include "ProjectX_Shared.h"

#endif	//_PROJECTX_COMMON_














⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -