minor fixes

This commit is contained in:
Nomango 2019-09-10 21:47:52 +08:00
parent ab9c650b0a
commit c7d2295f4d
2 changed files with 4 additions and 7 deletions

View File

@ -20,13 +20,13 @@
#include "Component.h"
#define KGE_DEFINE_COMPONENT_FLAG ( 0x01 << (__COUNTER__ % 32) )
#define KGE_DEFINE_COMPONENT_FLAG(OFFSET) ( 0x01 << (OFFSET % 32) )
namespace kiwano
{
const Int32 RenderComponent::flag = KGE_DEFINE_COMPONENT_FLAG;
const Int32 UpdateComponent::flag = KGE_DEFINE_COMPONENT_FLAG;
const Int32 EventComponent::flag = KGE_DEFINE_COMPONENT_FLAG;
const Int32 RenderComponent::flag = KGE_DEFINE_COMPONENT_FLAG(0);
const Int32 UpdateComponent::flag = KGE_DEFINE_COMPONENT_FLAG(1);
const Int32 EventComponent::flag = KGE_DEFINE_COMPONENT_FLAG(2);
ComponentBase::ComponentBase()
: flag_(0)

View File

@ -95,7 +95,4 @@ namespace kiwano
EventComponent();
};
#undef KGE_DEFINE_COMPONENT_FLAG
}