diff options
| author | Tobin Ehlis <tobin@lunarg.com> | 2014-12-05 12:13:07 -0700 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2014-12-11 16:07:34 -0700 |
| commit | 52e9bb64190c2f17754e46940d6be99075814fc4 (patch) | |
| tree | 279e6eb0c86725f02b85668d9cdcc0fdd968a897 | |
| parent | 2f48fc92df36bf6eba18fc3979600d6687fe920b (diff) | |
| download | usermoji-52e9bb64190c2f17754e46940d6be99075814fc4.tar.xz | |
glave: Update replay to use code-gen version of xgl_enum_string_helper.h
| -rwxr-xr-x | xgl-helper.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xgl-helper.py b/xgl-helper.py index 298b30f9..be7f71be 100755 --- a/xgl-helper.py +++ b/xgl-helper.py @@ -172,8 +172,9 @@ class HeaderFileParser: # strip comma and comment, then extra split in case of no comma w/ comments enum_val = enum_val.strip().split(',', 1)[0] self.enum_val_dict[enum_name]['val'] = enum_val.split()[0] - # TODO : Make this more robust, to verify if enum value is unique - # Currently just try to cast to int which works ok but missed -(HEX) values + # account for negative values surrounded by parens + self.enum_val_dict[enum_name]['val'] = self.enum_val_dict[enum_name]['val'].strip(')').replace('-(', '-') + # Try to cast to int to determine if enum value is unique try: #print("ENUM val:", self.enum_val_dict[enum_name]['val']) int(self.enum_val_dict[enum_name]['val'], 0) |
