Changeset 12091


Ignore:
Timestamp:
Mar 4, 2011, 3:21:00 PM (11 years ago)
Author:
jordan
Message:

(trunk gtk) remove unused code: gtr_warn_if_fail()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/util.h

    r11738 r12091  
    3737extern const char * speed_G_str;
    3838extern const char * speed_T_str;
    39 
    40 /* portability wrapper around g_warn_if_fail() for older versions of glib */
    41 #ifdef g_warn_if_fail
    42  #define gtr_warn_if_fail(expr) g_warn_if_fail(expr)
    43 #else
    44  #define gtr_warn_if_fail(expr) do { if G_LIKELY (expr) ; else \
    45                                        g_log (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "%s:%d func(): %s: invariant failed: %s", \
    46                                               __FILE__, __LINE__, G_STRFUNC, #expr ); } while(0)
    47 #endif
    4839
    4940/* macro to shut up "unused parameter" warnings */
Note: See TracChangeset for help on using the changeset viewer.