projects
/
org.ibex.core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reorganized file layout (part 1: moves and renames)
[org.ibex.core.git]
/
src
/
org
/
ibex
/
util
/
Preprocessor.java
diff --git
a/src/org/ibex/util/Preprocessor.java
b/src/org/ibex/util/Preprocessor.java
index
5f202fa
..
a226731
100644
(file)
--- a/
src/org/ibex/util/Preprocessor.java
+++ b/
src/org/ibex/util/Preprocessor.java
@@
-275,7
+275,7
@@
PROCESS:
ret += tok;
i = j - 1;
} else if (val instanceof JSFunctionMacro) {
ret += tok;
i = j - 1;
} else if (val instanceof JSFunctionMacro) {
- if (s.charAt(j) != '(') { err.add(new Error("open paren must follow macro binding for macro " + tok)); continue; }
+ if (s.charAt(j) != '(') { ret += tok; i = j - 1; continue; }
ret += ((JSFunctionMacro)val).process(s.substring(j+1, s.indexOf(')', j)));
i = s.indexOf(')', j);
} else {
ret += ((JSFunctionMacro)val).process(s.substring(j+1, s.indexOf(')', j)));
i = s.indexOf(')', j);
} else {