Make TagManager Assert statements cause g_warning on failure.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4423 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
2f8df127c9
commit
a13f91e770
@ -1,3 +1,9 @@
|
||||
2009-11-12 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* tagmanager/ctags.c, tagmanager/general.h:
|
||||
Make TagManager Assert statements cause g_warning on failure.
|
||||
|
||||
|
||||
2009-11-10 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* tagmanager/perl.c:
|
||||
|
@ -1392,4 +1392,10 @@ extern int ctags_main (int __unused__ argc, char **argv)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* wrap g_warning so we don't include glib.h for all parsers, to keep compat with CTags */
|
||||
void utils_warn(const char *msg)
|
||||
{
|
||||
g_warning("%s", msg);
|
||||
}
|
||||
|
||||
/* vi:set tabstop=8 shiftwidth=4: */
|
||||
|
@ -205,8 +205,9 @@ int fnmatch(const char *pattern, const char *string, int flags);
|
||||
/* fake debug statement macro */
|
||||
#define DebugStatement(x) ;
|
||||
#define PrintStatus(x) ;
|
||||
#define Assert(x) ;
|
||||
|
||||
/* wrap g_warning so we don't include glib.h for all parsers, to keep compat with CTags */
|
||||
void utils_warn(const char *msg);
|
||||
#define Assert(x) if (!(x)) utils_warn("Assert(" #x ") failed!")
|
||||
/*
|
||||
* DATA DECLARATIONS
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user