add ENUM_CLASS_RANGE macro

This commit is contained in:
2020-08-25 17:49:05 +08:00
parent 8e2a935bae
commit 80d1e17dcb

View File

@@ -7,6 +7,8 @@ namespace hgl
{
#define HGL_OFFICAL_WEB "www.hyzgame.com"
#define ENUM_CLASS_RANGE(begin,end) BEGIN_RANGE=begin,END_RANGE=end,RANGE_SIZE=(END_RANGE-BEGIN_RANGE)+1
#define HGL_CONVER_TO_MEM_ALIGN(x) ((((x)+HGL_MEM_ALIGN-1)/HGL_MEM_ALIGN)*HGL_MEM_ALIGN) //内存对齐转换宏
#ifndef NULL