diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-21 07:38:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-21 07:38:11 +0000 |
commit | 94a4bc0ef4165e42ec36c9562ce7a7bcf01ba1cf (patch) | |
tree | 434d3151bc82abfff5ffc0072a432ddc1160b2da /template | |
parent | 2edcf87c1c30c29562fc52075896935ebf398367 (diff) | |
download | ruby-94a4bc0ef4165e42ec36c9562ce7a7bcf01ba1cf.tar.gz |
id.h.tmpl: ID2ATTRSET
* template/id.h.tmpl (ID2ATTRSET): compile time constant macro for
ID_ATTRSET.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r-- | template/id.h.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/template/id.h.tmpl b/template/id.h.tmpl index 1573247c86..c993243424 100644 --- a/template/id.h.tmpl +++ b/template/id.h.tmpl @@ -39,6 +39,8 @@ types = ids.keys.grep(/^[A-Z]/) #define ID_JUNK 0x07 #define ID_INTERNAL ID_JUNK +#define ID2ATTRSET(id) (((id)&~ID_SCOPE_MASK)|ID_ATTRSET) + #define symIFUNC ID2SYM(idIFUNC) #define symCFUNC ID2SYM(idCFUNC) |