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 #include <stdio.h>
14 
15 /* Various functions/defines that need not/should not be exported externally */
16 
17 #define DELETEP(m) if (m) { delete m; m = 0; }
18 
19 #ifdef DEBUG
20 #define ABW_DEBUG_MSG(M) printf M
21 #else
22 #define ABW_DEBUG_MSG(M)
23 #endif
24 
25 #define ABW_NUM_ELEMENTS(array) sizeof(array)/sizeof(array[0])
26 
27 #endif /* LIBABW_INTERNAL_H */
28 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */

Generated for libwpd by doxygen 1.8.5