summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/js2c.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/js2c.py b/tools/js2c.py
index 772a0f5f69..bbbccb289a 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