Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. macro in .rep file
Forum Updated to NodeBB v4.3 + New Features

macro in .rep file

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 5 Posters 625 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Redman
    wrote on last edited by
    #1

    Is it possible to to use c-preprocessor macros in .rep files?

    Found nothing regarding this topic. I experimented a bit, without success.

    Any ideas?

    jsulmJ 1 Reply Last reply
    0
    • R Redman

      Is it possible to to use c-preprocessor macros in .rep files?

      Found nothing regarding this topic. I experimented a bit, without success.

      Any ideas?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Redman said in macro in .rep file:

      .rep files

      What are these files?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Redman said in macro in .rep file:

        .rep files

        What are these files?

        R Offline
        R Offline
        Redman
        wrote on last edited by
        #3

        @jsulm Is this a rhetorical question?

        At some point these .rep files have to be converted into rep_class_source.h and rep_class_replica.h. So assuming there could be a mechanism that handels this use case.

        jsulmJ JonBJ 2 Replies Last reply
        0
        • R Redman

          @jsulm Is this a rhetorical question?

          At some point these .rep files have to be converted into rep_class_source.h and rep_class_replica.h. So assuming there could be a mechanism that handels this use case.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Redman said in macro in .rep file:

          Is this a rhetorical question?

          No, I don't know what .rep files are.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • R Redman

            @jsulm Is this a rhetorical question?

            At some point these .rep files have to be converted into rep_class_source.h and rep_class_replica.h. So assuming there could be a mechanism that handels this use case.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Redman
            Still don't know what this is about. If you have some external .rep files how do you propose to run them through a C preprocessor? And, if it matters, these days I think the old C preprocessor standalone is no longer a part of C++, I don't know what options your compiler might take to run only some preprocessing stage if that is even available.

            R 1 Reply Last reply
            0
            • JonBJ JonB

              @Redman
              Still don't know what this is about. If you have some external .rep files how do you propose to run them through a C preprocessor? And, if it matters, these days I think the old C preprocessor standalone is no longer a part of C++, I don't know what options your compiler might take to run only some preprocessing stage if that is even available.

              R Offline
              R Offline
              Redman
              wrote on last edited by
              #6

              @JonB I'm simply talking about macros. The wordings seems to be wrong on my end.

              The .rep files get compiled by the repc which results in replica.h and source.h. So there could be a way of using macros since at some point we are working with c++ code.
              And AFAIK the repc compilation steps comes before project compilation so macros could be resolved

              Christian EhrlicherC 1 Reply Last reply
              0
              • R Redman

                @JonB I'm simply talking about macros. The wordings seems to be wrong on my end.

                The .rep files get compiled by the repc which results in replica.h and source.h. So there could be a way of using macros since at some point we are working with c++ code.
                And AFAIK the repc compilation steps comes before project compilation so macros could be resolved

                Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Redman You really should have said that you're talking about QtRemoteObjects - I would guess noone knew that repc is a Qt tool when they did not touch QtRemoteObjects until now which would not be that much people.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                2
                • Chris KawaC Offline
                  Chris KawaC Offline
                  Chris Kawa
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  You can run preprocessor on any file you want at any build stage you want. Just make a custom build step and pass it to the compiler with the right options to only run preprocessor stage. MSVC has a /P option for that. GCC has -E. You can then pass the result to repc.

                  1 Reply Last reply
                  1

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved