def check_arg_errcode(result, func, cargs):
    check_err(arg_byref(cargs))
    return result
The error code is returned in the last argument, by reference.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/gis/gdal/prototypes/errcheck.py/check_arg_errcode