glib/tsrc/BC/inc/mrt2_glib2_test.h
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
    26 #define __G_LOG_MRT2_GLIB2_TEST
    26 #define __G_LOG_MRT2_GLIB2_TEST
    27 #include <stdio.h>
    27 #include <stdio.h>
    28 #include <time.h>
    28 #include <time.h>
    29 #include <string.h>
    29 #include <string.h>
    30 #include <dirent.h>
    30 #include <dirent.h>
    31 #include <sys/stat.h>
       
    32 
    31 
    33 gboolean assert_failed = FALSE;
    32 gboolean assert_failed = FALSE;
    34 
    33 
    35 #undef g_assert
    34 #undef g_assert
    36 #define g_assert(expr)			G_STMT_START{	if (expr) { } else	 {g_log (G_LOG_DOMAIN,G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_INFO | G_LOG_LEVEL_DEBUG, "file %s: line %d: assertion failed: (%s)",    __FILE__,	 __LINE__,	 #expr);assert_failed  = TRUE;			}}G_STMT_END
    35 #define g_assert(expr)			G_STMT_START{	if (expr) { } else	 {g_log (G_LOG_DOMAIN,G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_INFO | G_LOG_LEVEL_DEBUG, "file %s: line %d: assertion failed: (%s)",    __FILE__,	 __LINE__,	 #expr);assert_failed  = TRUE;			}}G_STMT_END