mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-31 11:29:39 +00:00
spice codegen: fix copy-o, no such variable value
This commit is contained in:
parent
a95a9fe41c
commit
00a7b6ff3b
@ -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