diff options
-rwxr-xr-x | tools/js2c.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/js2c.py b/tools/js2c.py index 772a0f5f6..bbbccb289 100755 --- a/tools/js2c.py +++ b/tools/js2c.py @@ -150,9 +150,10 @@ def ExpandMacros(lines, macros): result = macro.expand(mapping) # Replace the occurrence of the macro with the expansion lines = lines[:start] + result + lines[end:] - start = lines.find(name + '(', end) + start = lines.find(name + '(', start) return lines + class TextMacro: def __init__(self, args, body): self.args = args |