Fix breakage in last commit

This commit is contained in:
kevstone 2023-11-02 13:51:04 +00:00
parent 8f284dee5f
commit 3a1448df7e
2 changed files with 3 additions and 1 deletions

View File

@ -385,6 +385,8 @@ class FunctionConverter:
if(match_end < len(line)):
# Recurse, transforming the remainder, then apply here...
remainder = self.update_cstruct_access(line[match_end:], depth+1)
else:
remainder = ""
cppstruct_arg = self.transform_cstruct_arg(cstruct_arg)
assert cppstruct_arg, f"Could not transform struct {cstruct_arg.name} to C++"

View File

@ -73,7 +73,7 @@ class MethodConverter(FunctionConverter):
if self._transforms.ctype_of(cstruct_arg.name) == "grib_handle*" or cstruct_arg.name == "grib_handle_of_accessor(a)":
if cstruct_member.name == "buffer":
debug.line("DEBUG", f"buffer: cstruct_arg=[{cstruct_arg.as_string()}]")
debug.line("transform_cstruct_arg", f"buffer: cstruct_arg=[{cstruct_arg.as_string()}]")
cppstruct_arg = struct_arg.StructArg("", "buffer_", "" )
if cstruct_member.member and cstruct_member.member.name == "data":