ARGOBOTS  29b0d4cc91ca184a8278ddf690fd0bcb2119000e
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
abti_log.h
Go to the documentation of this file.
1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
2 /*
3  * See COPYRIGHT in top-level directory.
4  */
5 
6 #ifndef ABTI_LOG_H_INCLUDED
7 #define ABTI_LOG_H_INCLUDED
8 
9 #include "abt_config.h"
10 
11 #ifdef ABT_CONFIG_USE_DEBUG_LOG
12 
13 void ABTI_log_debug(FILE *fh, const char *format, ...);
14 void ABTI_log_pool_push(ABTI_pool *p_pool, ABT_unit unit);
15 void ABTI_log_pool_remove(ABTI_pool *p_pool, ABT_unit unit);
16 void ABTI_log_pool_pop(ABTI_pool *p_pool, ABT_unit unit);
17 
18 #define LOG_DEBUG(fmt, ...) ABTI_log_debug(stderr, fmt, __VA_ARGS__)
19 
20 #define LOG_DEBUG_POOL_PUSH(p_pool, unit) ABTI_log_pool_push(p_pool, unit)
21 #define LOG_DEBUG_POOL_REMOVE(p_pool, unit) ABTI_log_pool_remove(p_pool, unit)
22 #define LOG_DEBUG_POOL_POP(p_pool, unit) ABTI_log_pool_pop(p_pool, unit)
23 
24 #else
25 
26 #define LOG_DEBUG(fmt, ...)
27 
28 #define LOG_DEBUG_POOL_PUSH(p_pool, unit)
29 #define LOG_DEBUG_POOL_REMOVE(p_pool, unit)
30 #define LOG_DEBUG_POOL_POP(p_pool, unit)
31 
32 #endif /* ABT_CONFIG_USE_DEBUG_LOG */
33 
34 #endif /* ABTI_LOG_H_INCLUDED */
struct ABT_unit_opaque * ABT_unit
Definition: abt.h:337