#NEWLINE# def check_arg_errcode( result , func , cargs ) : #NEWLINE# #INDENT# '\n    The error code is returned in the last argument, by reference.\n    Check its value with `check_err` before returning the result.\n    ' #NEWLINE# check_err ( arg_byref ( cargs ) ) #NEWLINE# return func