openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

export.h (823B)


      1 /*
      2  * 
      3  *
      4  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      5  * 
      6  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      7  * 
      8  * DNX Export
      9  */
     10 
     11 
     12 #ifndef __DIAG_EXPORT_
     13 #define __DIAG_EXPORT_
     14 
     15 #include <appl/diag/shell.h>
     16 #include <appl/diag/parse.h>
     17 
     18 /********************************* 
     19  * if res is not CMD_OK,
     20  * go to the exit label
     21  */
     22 #define ASSERT_EXIT(res, diag_cmd)                                      \
     23     if (res != CMD_OK) {                                                \
     24         sal_printf("ERROR: export_dump: %s failed!\n", diag_cmd);      \
     25         goto exit;                                                      \
     26     }                                                                   \
     27 
     28 #endif /*__DIAG_EXPORT_ */