Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib


Modified Files:
        main.c 


Log Message:


freeze/thaw debug!

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/main.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- main.c      19 May 2003 05:36:12 -0000      1.4
+++ main.c      28 Jan 2004 02:43:13 -0000      1.5
@@ -153,6 +153,22 @@
    if (_evas_debug_abort) abort();
 }
 
+void
+evas_debug_generic(const char *str)
+{
+   if (!_evas_debug_init)
+     {
+       if (getenv("EVAS_DEBUG_SHOW")) _evas_debug_show = 1;
+       if (getenv("EVAS_DEBUG_ABORT")) _evas_debug_abort = 1;
+       _evas_debug_init = 1;
+     }
+   if (_evas_debug_show)
+     fprintf(stderr, 
+            "*** EVAS ERROR:\n"
+            "%s", (char *)str);
+   if (_evas_debug_abort) abort();
+}
+
 char *
 evas_debug_magic_string_get(DATA32 magic)
 {




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to