def make_function_body(header, cls):
    impl = make_function_body_block(cls)
    cur_cls = cls
    while True:
        parent_name = cur_cls.get_parent_name()
        if is_base_class(parent_name):
            break
        else:
            parent_cls = header.get_class(parent_name)
            if (parent_cls is None):
                raise Exception(('Class does not exist: ' + parent_name))
            if (len(impl) > 0):
                impl += '\n'
            impl += make_function_body_block(parent_cls)
        cur_cls = header.get_class(parent_name)
    return impl
def make_function_body(header, cls):
    impl = make_function_body_block(cls)
    cur_cls = cls
    while True:
        parent_name = cur_cls.get_parent_name()
        if is_base_class(parent_name):
            break
        else:
            parent_cls = header.get_class(parent_name)
            if (parent_cls is None):
                raise Exception(('Class does not exist: ' + parent_name))
            if (len(impl) > 0):
                impl += '\n'
            impl += make_function_body_block(parent_cls)
        cur_cls = header.get_class(parent_name)
    return impl