summaryrefslogtreecommitdiff
path: root/template/id.h.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/id.h.tmpl')
-rw-r--r--template/id.h.tmpl2
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)