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)

x86
macOS
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.
Sorry, by "our" macros, I meant the macros pertaining to ParallelArray.js
Assignee: general → nobody
Severity: normal → S3
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.