libabw_internal.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libabw project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef __LIBABW_INTERNAL_H__
11 #define __LIBABW_INTERNAL_H__
12 
13 #ifdef HAVE_CONFIG_H
14 #include "config.h"
15 #endif
16 
17 /* Various functions/defines that need not/should not be exported externally */
18 
19 #if defined(HAVE_FUNC_ATTRIBUTE_FORMAT)
20 #define ABW_ATTRIBUTE_PRINTF(fmt, arg) __attribute__((format(printf, fmt, arg)))
21 #else
22 #define ABW_ATTRIBUTE_PRINTF(fmt, arg)
23 #endif
24 
25 namespace libabw
26 {
27 void debugPrint(const char *format, ...) ABW_ATTRIBUTE_PRINTF(1, 2);
28 }
29 
30 #ifdef DEBUG
31 #define ABW_DEBUG_MSG(M) libabw::debugPrint M
32 #else
33 #define ABW_DEBUG_MSG(M)
34 #endif
35 
36 #define ABW_NUM_ELEMENTS(array) sizeof(array)/sizeof(array[0])
37 
38 #endif /* LIBABW_INTERNAL_H */
39 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libabw_internal.h
ABW_ATTRIBUTE_PRINTF
#define ABW_ATTRIBUTE_PRINTF(fmt, arg)
Definition: libabw_internal.h:22
libabw
Definition: AbiDocument.cpp:16
libabw::debugPrint
void debugPrint(const char *const format,...)
Definition: libabw_internal.cpp:18

Generated for libwpd by doxygen 1.8.17