Mercurial Hosting > luan
comparison src/luan/LuanFunction.java @ 775:1a68fc55a80c
simplify dir structure
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 26 Aug 2016 14:36:40 -0600 |
parents | core/src/luan/LuanFunction.java@6cc2f047019b |
children | 25746915a241 |
comparison
equal
deleted
inserted
replaced
774:3e30cf310e56 | 775:1a68fc55a80c |
---|---|
1 package luan; | |
2 | |
3 | |
4 public abstract class LuanFunction { | |
5 | |
6 public abstract Object call(LuanState luan,Object[] args) throws LuanException; | |
7 | |
8 public static final Object[] NOTHING = new Object[0]; | |
9 | |
10 public final Object call(LuanState luan) throws LuanException { | |
11 return call(luan,NOTHING); | |
12 } | |
13 | |
14 @Override public String toString() { | |
15 return "function: " + Integer.toHexString(hashCode()); | |
16 } | |
17 | |
18 } |