At the moment we don't declare anything as ENUM_BLOCK_ID. Everything already is a BLOCKTYPE. I think long term c++11 enum classes would be the way to go for that as there range is the range of the type but neither tolua nor MSVC doesn't support them.