def check_lapack_return(context, builder, res):
 with builder.if_then(cgutils.is_not_null(builder, res), likely=False):
  pyapi = context.get_python_api(builder)
  pyapi.gil_ensure()
  pyapi.fatal_error('LAPACK wrapper returned with an error')

def check_lapack_return ( context , builder , res ) : with builder . if_then ( cgutils . is_not_null ( builder , res ) , likely = False ) : pyapi = context . get_python_api ( builder ) pyapi . gil_ensure ( ) pyapi . fatal_error ( 'LAPACK wrapper returned with an error' )
check the integer error return from one of the lapack wrappers in _helperlib .