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.
Summary: | more support for variadic variables in macro | ||
---|---|---|---|
Product: | cnd | Reporter: | Vladimir Voskresensky <vv159170> |
Component: | Code Model | Assignee: | Vladimir Voskresensky <vv159170> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexvsimon |
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Vladimir Voskresensky
2011-02-16 13:48:07 UTC
*** Bug 196216 has been marked as a duplicate of this bug. *** Code example: ---------------8<-------------------- #define LOG(args...) fprintf(stderr, ## args) int foo(char * env_map, char * env_log) { LOG("\n>>>NBBUILD: TOOLS=%s\n\tLOG=%s\n", env_map, env_log); } ---------------8<-------------------- Actual expansion is: int foo(char * env_map, char * env_log) { fprintf(stderr ,"\n>>>NBBUILD: TOOLS=%s\n\tLOG=%s\n" ); } Expected expansion is: int foo(char * env_map, char * env_log) { fprintf(stderr ,"\n>>>NBBUILD: TOOLS=%s\n\tLOG=%s\n", env_map, env_log); } I will have a look, not sure about P2 status Integrated into 'main-golden', will be available in build *201105220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/6f4f03d20303 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #195560 - more support for variadic variables in macro - support named variadic macro parameters (transplanted from 03356b37017e72f854f9d1b18162d9200c05e076) |