Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to see which macro was defined in a cpp unit?

how to see which macro was defined in a cpp unit?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
4 Posts 3 Posters 0 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.
  • D Offline
    D Offline
    derek7
    wrote on last edited by
    #1

    which tool or switch work for it?

    S N 2 Replies Last reply
    0
    • D derek7

      which tool or switch work for it?

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      Just do a text search for "#define". Steve

      1 Reply Last reply
      0
      • D derek7

        which tool or switch work for it?

        N Offline
        N Offline
        Nibu babu thomas
        wrote on last edited by
        #3

        If you are using Visual studio then you can right click on that macro and select Goto Definition or Goto Declaration. This will take you to the file where it is defined.


        Nibu thomas Software Developer

        D 1 Reply Last reply
        0
        • N Nibu babu thomas

          If you are using Visual studio then you can right click on that macro and select Goto Definition or Goto Declaration. This will take you to the file where it is defined.


          Nibu thomas Software Developer

          D Offline
          D Offline
          derek7
          wrote on last edited by
          #4

          I do not know what is the macro name. it could be define at .h file in cpp you can not easily to search.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups