mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-26 22:55:30 +00:00
python_modules/ptypes.py/EnumBaseType.c_enumname: add missing return to fix broken enums generation
Fixes the resulting enums.h from the invocation of: ./spice_codegen.py --generate-enums spice.proto spice-protocol/spice/enums.h Right now any enum will contain None as the enum members, with this fix it will contain the real enum members, i.e. SPICE_FOO.
This commit is contained in:
parent
543faaf796
commit
341f33cbdb
@ -234,7 +234,7 @@ class EnumBaseType(Type):
|
||||
return codegen.prefix_camel(self.name)
|
||||
|
||||
def c_enumname(self, value):
|
||||
self.c_enumname_by_name(self.names[value])
|
||||
return self.c_enumname_by_name(self.names[value])
|
||||
|
||||
def c_enumname_by_name(self, name):
|
||||
if self.has_attr("prefix"):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user