Author Topic: C/C++ parser preprocessor?  (Read 2526 times)

Offline two-questions-only

  • Single posting newcomer
  • *
  • Posts: 3
C/C++ parser preprocessor?
« on: January 03, 2011, 07:47:37 pm »
I have a piece of code that contains some macros which expand to function declarations only when a specific preprocessor macro is defined. Is it possible to define this macro so i can see these declarations in the Symbols list. Example:

Code
#ifdef __FOO
#define __DECLARE_FUNCTION( function_prototype ) function_prototype;
#else
#define __DECLARE_FUNCTION( function_prototype )
#endif
« Last Edit: January 03, 2011, 07:53:21 pm by two-questions-only »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C/C++ parser preprocessor?
« Reply #1 on: January 03, 2011, 08:18:28 pm »
Try some of the recent nightlies, they should support such code
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]