def relicResult(relicFunc, resultType, *args):
result = None<EOL>if resultType is not None:<EOL><INDENT>result = resultType()<EOL>args = (result,) + args<EOL><DEDENT>params = [byref(x) for x in list(args)]<EOL>relicFunc(*params)<EOL>return result<EOL>
Calls @relicFunc with a list of @args that are passed by reference. If
@resultType is set, a new object of this type is created, passed as the
first argument, and returned by this function.