mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2026-01-02 05:50:38 +00:00
fix copy & paste error in ptypes.py
This commit is contained in:
parent
7220080972
commit
7f23ab54aa
@ -234,9 +234,7 @@ class EnumBaseType(Type):
|
||||
return codegen.prefix_camel(self.name)
|
||||
|
||||
def c_enumname(self, value):
|
||||
if self.has_attr("prefix"):
|
||||
return self.attributes["prefix"][0] + self.names[value]
|
||||
return codegen.prefix_underscore_upper(self.name.upper(), self.names[value])
|
||||
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