Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95685

Implement a Q_ASSERT2(cond, what) macro possibly defined as Q_ASSERT_X(cond, Q_FUNC_INFO, what)

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • Core: Other
    • None
    • All

      I often write an explanation for an assertion, but never pass anything other than Q_FUNC_INFO as the where parameter to Q_ASSERT_X. Q_FUNC_INFO is passed to Q_ASSERT_X in 40 places in qtbase. Using Q_ASSERT2 would be more concise and less error-prone.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            vedg Igor Kushnir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes