[Bug 60512] Syntax parser can be fooled by #defines

Dominik Haumann dhdev at gmx.de
Tue Feb 8 17:28:05 UTC 2005


On Tuesday 08 February 2005 17:16, Roberto Raggi wrote:
> > Can you give an example of how the a macro has to look like in this
>
> you have to fake the macro expansion. for instance you can write
> something like
>
> #define IGNORE_ME(arg)
>
> and then you can write things like
>
>   IGNORE_ME(x + y * 2 / 100)

indeed, I have now:
#ifndef DECLARE_EVENT_TABLE()
#define DECLARE_EVENT_TABLE()
#endif

now it works.

Thanks a lot for the tip :)
-- 
Dominik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20050208/1de1f407/attachment.sig>


More information about the KDevelop-devel mailing list