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 #include <stdio.h> 00014 00015 /* Various functions/defines that need not/should not be exported externally */ 00016 00017 #define DELETEP(m) if (m) { delete m; m = 0; } 00018 00019 #ifdef DEBUG 00020 #define ABW_DEBUG_MSG(M) printf M 00021 #else 00022 #define ABW_DEBUG_MSG(M) 00023 #endif 00024 00025 #define ABW_NUM_ELEMENTS(array) sizeof(array)/sizeof(array[0]) 00026 00027 #endif /* LIBABW_INTERNAL_H */ 00028 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */