This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197997 - Macro interpreter does not support macro evaluation if expression has in expansion 'defined' operator
Summary: Macro interpreter does not support macro evaluation if expression has in expa...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
: 195235 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-22 11:44 UTC by crimcat
Modified: 2011-07-06 13:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description crimcat 2011-04-22 11:44:52 UTC
Hello,

Below is the sample:
----------------------
#define MY_TEST_PARAM 1
#define F_TEST_PARAM defined(MY_TEST_PARAM)

#if F_TEST_PARAM
void
function() {
}
#endif /* F_TEST_PARAM */

int main(int argc, char** argv) {

    return 0;
}
----------------------
The code inside "#if F_TEST_PARAM" is shown in grey in the editor. Moreover, the function() definition is unreachable in the editor, and autocompletion does not propose this function.
Not sure if it worked in previous versions of NB.
Comment 1 Vladimir Voskresensky 2011-04-22 12:43:47 UTC
Will fix it
Comment 2 Vladimir Voskresensky 2011-04-22 17:14:42 UTC
http://hg.netbeans.org/cnd-main/rev/d4685e0442cc
Comment 3 nnnnnk 2011-05-20 17:06:34 UTC
*** Bug 195235 has been marked as a duplicate of this bug. ***
Comment 4 Alexander Pepin 2011-07-06 13:57:26 UTC
Looks like a new feature. No QA action needed.