mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-29 08:47:11 +00:00
spice codegen: fix copy-o, no such variable value
This commit is contained in:
parent
aa7a086933
commit
005ecaa7d6
@ -240,7 +240,7 @@ class EnumBaseType(Type):
|
||||
|
||||
def c_enumname_by_name(self, name):
|
||||
if self.has_attr("prefix"):
|
||||
return self.attributes["prefix"][0] + self.names[value]
|
||||
return self.attributes["prefix"][0] + name
|
||||
return codegen.prefix_underscore_upper(self.name.upper(), name)
|
||||
|
||||
def is_primitive(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user