libabw_internal.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /*
00003  * This file is part of the libabw project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  */
00009 
00010 #ifndef __LIBABW_INTERNAL_H__
00011 #define __LIBABW_INTERNAL_H__
00012 
00013 /* Various functions/defines that need not/should not be exported externally */
00014 
00015 #define DELETEP(m) if (m) { delete m; m = 0; }
00016 
00017 namespace libabw
00018 {
00019 void debugPrint(const char *format, ...);
00020 }
00021 
00022 #ifdef DEBUG
00023 #define ABW_DEBUG_MSG(M) libabw::debugPrint M
00024 #else
00025 #define ABW_DEBUG_MSG(M)
00026 #endif
00027 
00028 #define ABW_NUM_ELEMENTS(array) sizeof(array)/sizeof(array[0])
00029 
00030 #endif /* LIBABW_INTERNAL_H */
00031 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */