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

moc doesn't understand #if true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.14.2
    • Build tools: moc
    • None

      Following code is skipped by moc and causes link error:

      #if true
      class MainWindow : public QMainWindow
      {
          Q_OBJECT
      
      public:
          MainWindow(QWidget *parent = nullptr);
          ~MainWindow();
      };
      #endif
      

      Using 1 instead of true works.

        1. qtbug83919.zip
          5 kB
          Joni Poikelin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes