Author Topic: help me to get expanded macro code?  (Read 4649 times)

Offline hr1212s

  • Single posting newcomer
  • *
  • Posts: 2
help me to get expanded macro code?
« on: May 24, 2010, 07:22:02 am »
i'm using code::blocks 8.02
does anyone knows how to watch expanded preprocessor code

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: help me to get expanded macro code?
« Reply #1 on: May 24, 2010, 08:38:12 am »
Don't multi-post!!!
And learn the GCC preprocessor options firstly.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.