1
#ifndef INCLUDE_PUBLIC_MLXBAIL_H_
2
#define INCLUDE_PUBLIC_MLXBAIL_H_
5
* Copyright (C) 2015 Mellanox Technologies Ltd.
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License as
9
* published by the Free Software Foundation; either version 2 of the
10
* License, or any later version.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23
FILE_LICENCE ( GPL2_OR_LATER );
25
#include "mlx_types.h"
27
#define MLX_BAIL_ERROR(id, status,message) MLX_CHECK_STATUS(id, status, bail, message)
29
#define MLX_FATAL_CHECK_STATUS(status, label, message) \
31
if (status != MLX_SUCCESS) { \
32
MLX_DEBUG_FATAL_ERROR(message " (Status = %d)\n", status); \
37
#define MLX_CHECK_STATUS(id, status, label, message) \
39
if (status != MLX_SUCCESS) { \
40
MLX_DEBUG_ERROR(id, message " (Status = %d)\n", status);\
47
#endif /* INCLUDE_PUBLIC_MLXBAIL_H_ */