1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
//------------------------------------------------------------------------------
// GB_ok.h: call a GraphBLAS method and return if an error occurs
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2025, All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//------------------------------------------------------------------------------
#ifndef GB_OK_H
#define GB_OK_H
#define GB_OK(method) \
{ \
info = (method) ; \
if (info != GrB_SUCCESS) \
{ \
GB_FREE_ALL ; \
return (info) ; \
} \
}
#endif
|