Home
last modified time | relevance | path

Searched refs:var_type (Results 1 – 1 of 1) sorted by relevance

/zcbor-latest/zcbor/
Dzcbor.py2039 def add_var_name(self, var_type, full=False, anonymous=False): argument
2044 if var_type:
2045 assert (var_type[-1][-1] == "}" or len(var_type) == 1), \
2047 if not anonymous or var_type[-1][-1] != "}":
2050 var_type[-1] += f" {var_name}{array_part}"
2051 var_type = add_semicolon(var_type)
2052 return var_type
2054 def var_type(self): member in CodeGenerator
2082 var_type = self.var_type()
2088 decl += self.add_var_name(var_type, anonymous=(self.type == "UNION"))
[all …]