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 /* Various functions/defines that need not/should not be exported externally */
14 
15 #define DELETEP(m) if (m) { delete m; m = 0; }
16 
17 namespace libabw
18 {
19 void debugPrint(const char *format, ...);
20 }
21 
22 #ifdef DEBUG
23 #define ABW_DEBUG_MSG(M) libabw::debugPrint M
24 #else
25 #define ABW_DEBUG_MSG(M)
26 #endif
27 
28 #define ABW_NUM_ELEMENTS(array) sizeof(array)/sizeof(array[0])
29 
30 #endif /* LIBABW_INTERNAL_H */
31 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
void debugPrint(const char *const format,...)
Definition: libabw_internal.cpp:18
Definition: ABWCollector.h:17

Generated for libwpd by doxygen 1.8.14