summaryrefslogtreecommitdiff
path: root/specs
diff options
context:
space:
mode:
Diffstat (limited to 'specs')
-rw-r--r--specs/stdapi.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/specs/stdapi.py b/specs/stdapi.py
index de0cc93a..f36c4e2e 100644
--- a/specs/stdapi.py
+++ b/specs/stdapi.py
@@ -268,6 +268,10 @@ class Bitmask(Type):
Flags = Bitmask
+def EnumFlags(name, values):
+ return Flags(Alias(name, UInt), values)
+
+
class Array(Type):
def __init__(self, type_, length):