fixed bug 362: preprocessor not preserving line numbers
authoradam <adam@megacz.com>
Mon, 9 Feb 2004 23:30:28 +0000 (23:30 +0000)
committeradam <adam@megacz.com>
Mon, 9 Feb 2004 23:30:28 +0000 (23:30 +0000)
darcs-hash:20040209233028-5007d-f857eb32322b80b3e0a92694a3220d01be1b532a.gz

src/org/ibex/Ibex.java

index bd337f1..a5a2e85 100644 (file)
@@ -348,6 +348,7 @@ public final class Ibex extends JS.Cloneable {
             if (nargs != 1 && nargs != 9999) throw new JSExn("FIXME can only call with one arg");
             getStatic();
             if (t == null) throw new JSExn("No such template " + parentkey);
+            if (nargs == 9999) return t;
             t.apply((Box)a);
             return a;
         }