]> git.decadent.org.uk Git - ion3.git/blobdiff - libmainloop/defer.c
Imported Upstream version 20090110
[ion3.git] / libmainloop / defer.c
index 90e02af1dc5991acb4bc9c84243aa4b69eb66440..2358a270cf5830379ebb76afc0cbac7b8cde69fd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * ion/libmainloop/defer.c
  *
- * Copyright (c) Tuomo Valkonen 1999-2008
+ * Copyright (c) Tuomo Valkonen 1999-2009
  *
  * See the included file LICENSE for details.
  */
@@ -18,6 +18,7 @@
 #include <libtu/dlist.h>
 #include <libtu/output.h>
 #include <libtu/locale.h>
+#include <libtu/debug.h>
 #include "defer.h"
 
 
@@ -78,7 +79,7 @@ static void defer_watch_handler(Watch *w, Obj *obj)
     
     free_defer(d);
     
-    warn(TR("Object destroyed while deferred actions are still pending."));
+    D(warn(TR("Object destroyed while deferred actions are still pending.")));
 }