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 245464 - __LINE__ and __FILE__ macros no longer recognized after upgrading to netbeans 8.0
Summary: __LINE__ and __FILE__ macros no longer recognized after upgrading to netbeans...
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-08 08:30 UTC by Arma
Modified: 2014-07-15 14:06 UTC (History)
0 users

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 Arma 2014-07-08 08:30:31 UTC
The C build-in macro's __LINE__ and __FILE__ are no longer recognized by Netbeans. The editor lists this as an unresolved identifier. If you check the list of macros in Tools->Options->C++->Code Assistance, you'll see that in the Macro Definitions listing, __LINE__ and __FILE__ are not listed. A workaround is to switch back to netbeans 7.4 (which is what I'm doing for now).
Comment 1 Vladimir Voskresensky 2014-07-15 14:06:08 UTC
Hello. 

I checked trunk and it works fine for me.

int foo() {
    if (__FILE__) {
        return __LINE__;
    }
}

Could you, please, try dev build, start with clean userdir and check.
http://bits.netbeans.org/dev/nightly

Thanks!
Vladimir.