[Pidgin] #17400: g_return_val_if_fail() glib2 macro should not contain code with side effects

Pidgin trac at pidgin.im
Tue Jun 25 05:39:34 EDT 2019


#17400: g_return_val_if_fail() glib2 macro should not contain code with side
effects
--------------------+--------------------------
 Reporter:  bellet  |      Owner:  EionRobb
     Type:  defect  |     Status:  new
Milestone:          |  Component:  unclassified
  Version:  2.13.0  |   Keywords:
--------------------+--------------------------
 Hi!

 It is possible to build the code with the -DG_DISABLE_CHECKS macro set,
 that will completely disable all these assertion checking macros, so
 having code inside these macros that does "useful" things should be
 avoided, because it can be silently removed.

--
Ticket URL: <https://developer.pidgin.im/ticket/17400>
Pidgin <https://pidgin.im>
Pidgin


More information about the Tracker mailing list