1 /* 2 * Copyright (c) 1998-2002, Darren Hiebert 3 * 4 * This source code is released for free distribution under the terms of the 5 * GNU General Public License version 2 or (at your option) any later version. 6 * 7 * This code is derived from the main part of ctags. 8 * This source code is NOT released for the public domain. 9 */ 10 #ifndef READTAGS_STUB_H 11 #define READTAGS_STUB_H 12 13 #include "general.h" 14 15 #ifdef DEBUG 16 # include <assert.h> 17 #endif 18 19 enum eDebugLevels { 20 DEBUG_READ = 0x01, /* echo raw (filtered) characters */ 21 DEBUG_PARSE = 0x02, /* echo parsing results */ 22 DEBUG_STATUS = 0x04, /* echo file status information */ 23 DEBUG_OPTION = 0x08, /* echo option parsing */ 24 DEBUG_CPP = 0x10, /* echo characters out of pre-processor */ 25 DEBUG_RAW = 0x20 /* echo raw (filtered) characters */ 26 }; 27 28 extern void debugAssert (const char *assertion, const char *file, unsigned int line, const char *function) attr__noreturn; 29 extern void debugPrintf (const enum eDebugLevels level, const char *const format, ...) CTAGS_ATTR_PRINTF (2, 3); 30 31 #endif /* READTAGS_STUB_H */ 32