Closed
Bug 839244
Opened 12 years ago
Closed 2 years ago
macros.py substitutes parameters wherever they appear, not only whole words
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: nmatsakis, Unassigned)
Details
This macro:
macro TRY_PARALLEL(m) = ((!m || m.mode === "par"));
applied to this input:
TRY_PARALLEL(mode)
yields:
((!mode || mode.modeode === "par"))
^^^^^^^
(Highlight mine)
I think it should behave like cpp and only substitute `m` if it appears as a whole word. For the time being I have switched our macros to use UPPERCASE parameter names so as to make collisions less likely.
Reporter | ||
Comment 1•12 years ago
|
||
Sorry, by "our" macros, I meant the macros pertaining to ParallelArray.js
Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Updated•3 years ago
|
Severity: normal → S3
Updated•2 years ago
|
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•