Mercurial Hosting > luan
comparison src/luan/LuanFunction.java @ 1333:25746915a241
merge Luan and LuanState
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 12 Feb 2019 22:33:40 -0700 |
parents | 1a68fc55a80c |
children | e0cf0d108a77 |
comparison
equal
deleted
inserted
replaced
1332:11b7e11f9ed5 | 1333:25746915a241 |
---|---|
1 package luan; | 1 package luan; |
2 | 2 |
3 | 3 |
4 public abstract class LuanFunction { | 4 public abstract class LuanFunction { |
5 | 5 |
6 public abstract Object call(LuanState luan,Object[] args) throws LuanException; | 6 public abstract Object call(Luan luan,Object[] args) throws LuanException; |
7 | 7 |
8 public static final Object[] NOTHING = new Object[0]; | 8 public static final Object[] NOTHING = new Object[0]; |
9 | 9 |
10 public final Object call(LuanState luan) throws LuanException { | 10 public final Object call(Luan luan) throws LuanException { |
11 return call(luan,NOTHING); | 11 return call(luan,NOTHING); |
12 } | 12 } |
13 | 13 |
14 @Override public String toString() { | 14 @Override public String toString() { |
15 return "function: " + Integer.toHexString(hashCode()); | 15 return "function: " + Integer.toHexString(hashCode()); |