Misc fixes to java api
This commit is contained in:
@@ -69,6 +69,6 @@ abstract public class JavaFunction extends LFunction {
|
||||
*/
|
||||
public boolean luaStackCall(VM vm) {
|
||||
vm.invokeJavaFunction( this );
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -457,7 +457,7 @@ public interface VM {
|
||||
* index. If the index is not valid, or if the value does not have a
|
||||
* metatable, the function returns 0 and pushes nothing on the stack.
|
||||
*/
|
||||
public void getmetatable(int index);
|
||||
public int getmetatable(int index);
|
||||
|
||||
/**
|
||||
* Dereference a table's list element. <span class="apii">[-1, +1,
|
||||
@@ -930,6 +930,18 @@ public interface VM {
|
||||
*/
|
||||
public void pushlstring(byte[] bytes, int offset, int length);
|
||||
|
||||
/**
|
||||
* Push an LValue onto the stack. <span class="apii">[-0, +1,
|
||||
* <em>m</em>]</span>
|
||||
*/
|
||||
public void pushlvalue(LValue v);
|
||||
|
||||
/**
|
||||
* Push an LString onto the stack. <span class="apii">[-0, +1,
|
||||
* <em>m</em>]</span>
|
||||
*/
|
||||
public void pushlstring(LString luaGetTypeName);
|
||||
|
||||
/**
|
||||
* Pushes a nil value onto the stack. <span class="apii">[-0, +1, <em>-</em>]</span>
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user