Skip to content
  • Nat Friedman's avatar
    Guys, this is a recurrent problem. Only use g_return_if_fail and · 0191bb0d
    Nat Friedman authored
    g_return_val_if_fail for *preconditions*; they are not guaranteed to
    compile to code if the user disables debugging.  So don't use them as
    a shortcut for checking error conditions in the body of your
    function.
    
    1999-06-02  Nat Friedman  <nat@gnome-support.com>
    
            * applet-widget.c (pg_return_val_if_fail): Do not use glib
            g_return_val_if_fail, since that will compile to a NOP with
            debugging turned off.
    
            (pg_return_if_fail): Do not use g_return_if_fail.
    0191bb0d