libt3window
|
00001 /* Copyright (C) 2012 G.P. Halkes 00002 This program is free software: you can redistribute it and/or modify 00003 it under the terms of the GNU General Public License version 3, as 00004 published by the Free Software Foundation. 00005 00006 This program is distributed in the hope that it will be useful, 00007 but WITHOUT ANY WARRANTY; without even the implied warranty of 00008 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00009 GNU General Public License for more details. 00010 00011 You should have received a copy of the GNU General Public License 00012 along with this program. If not, see <http://www.gnu.org/licenses/>. 00013 */ 00014 #ifndef T3_WINDOW_LOG_H 00015 #define T3_WINDOW_LOG_H 00016 00017 #ifndef _T3_WINDOW_INTERNAL 00018 #error This header file is for internal use _only_!! 00019 #endif 00020 00021 #include <stdio.h> 00022 00023 #include "window_api.h" 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00029 #ifdef _T3_WINDOW_DEBUG 00030 00031 T3_WINDOW_LOCAL void init_log(void); 00032 /* Note: these must be declared with T3_WINDOW_API such that they can be accessed 00033 from the clipboard modules. */ 00034 T3_WINDOW_API void lprintf(const char *fmt, ...) 00035 #ifdef __GNUC__ 00036 __attribute__((format(printf, 1, 2))) 00037 #endif 00038 ; 00039 #else 00040 #define init_log() 00041 #define lprintf(fmt, ...) 00042 #endif 00043 00044 #ifdef __cplusplus 00045 } /* extern "C" */ 00046 #endif 00047 00048 #endif