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

cint_debug.h (1064B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  *
      7  * File:        cint_debug.h
      8  * Purpose:     CINT debug interfaces
      9  */
     10 
     11 #ifndef __CINT_DEBUG_H__
     12 #define __CINT_DEBUG_H__
     13 
     14 #include "cint_config.h"
     15 
     16 #include "cint_ast.h"
     17 
     18 /*
     19  * Debug execution trace
     20  */
     21 
     22 #if CINT_CONFIG_INCLUDE_DTRACE == 1
     23 extern void cint_dtrace(const char* fmt, ...)
     24      COMPILER_ATTRIBUTE((format (printf, 1, 2))); 
     25 #define CINT_DTRACE(x) cint_dtrace x
     26 #else
     27 #define CINT_DTRACE(x) 
     28 #endif
     29 
     30 #if CINT_CONFIG_INCLUDE_DEBUG == 1
     31 extern void cint_debug(const char* fmt, ...)
     32      COMPILER_ATTRIBUTE((format (printf, 1, 2))); 
     33 #define CINT_DEBUG(x) cint_debug x
     34 #else
     35 #define CINT_DEBUG(x)
     36 #endif
     37 
     38 extern void cint_trace(const char* pfx, const char* fmt, ...)
     39      COMPILER_ATTRIBUTE((format (printf, 2, 3))); 
     40 extern void cint_ftrace(const char* name, int enter); 
     41 extern void cint_atrace(cint_ast_t* ast); 
     42 
     43 #endif /* __CINT_DEBUG_H__ */