Mercurial Hosting > luan
view src/luan/LuanFunction.java @ 1174:bdf27aa2a65c
fix luanhost security bug
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 11 Feb 2018 17:13:40 -0700 |
parents | 1a68fc55a80c |
children | 25746915a241 |
line wrap: on
line source
package luan; public abstract class LuanFunction { public abstract Object call(LuanState luan,Object[] args) throws LuanException; public static final Object[] NOTHING = new Object[0]; public final Object call(LuanState luan) throws LuanException { return call(luan,NOTHING); } @Override public String toString() { return "function: " + Integer.toHexString(hashCode()); } }