equal
deleted
inserted
replaced
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> |
31 |
32 |
32 gboolean assert_failed = FALSE; |
33 gboolean assert_failed = FALSE; |
33 |
34 |
34 #undef g_assert |
35 #undef g_assert |
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 |
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 |