Files
luaj/src/main/java/lua/value/LFunction.java

29 lines
625 B
Java
Raw Normal View History

package lua.value;
2007-06-17 02:58:40 +00:00
import lua.StackState;
public class LFunction extends LValue {
public String toString() {
return "function: "+hashCode();
}
2007-06-17 02:58:40 +00:00
public void luaSetTable(StackState state, int base, LValue table, LValue key, LValue val) {
state.top = base;
state.push( this );
state.push( table );
state.push( key );
state.push( val );
this.luaStackCall(state, base, state.top, 1);
}
public void luaGetTable(StackState state, int base, LValue table, LValue key) {
state.top = base;
state.push( this );
state.push( table );
state.push( key );
this.luaStackCall(state, base, state.top, 1);
}
}