Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: two-questions-only on January 03, 2011, 07:47:37 pm

Title: C/C++ parser preprocessor?
Post by: two-questions-only 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
Title: Re: C/C++ parser preprocessor?
Post by: oBFusCATed on January 03, 2011, 08:18:28 pm
Try some of the recent nightlies, they should support such code