Skip to content

Commit a0f18a8

Browse files
committed
Merge branch 'accessEnumValue' into devel
2 parents 0d10749 + 2bc3de7 commit a0f18a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dissect/cstruct/cstruct.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,9 @@ def __str__(self):
13821382
def __repr__(self):
13831383
return '<{}.{}: {}>'.format(self.enum.name, self.name, self.value)
13841384

1385+
def __call__(self):
1386+
return self.value
1387+
13851388

13861389
class Union(RawType):
13871390
def __init__(self, cstruct):

0 commit comments

Comments
 (0)