Add "Java API" like "C API" for use with JavaFunctions.

This commit is contained in:
James Roseborough
2007-10-04 23:51:39 +00:00
parent 9be13fcc1d
commit e4882578f2
8 changed files with 1392 additions and 117 deletions

View File

@@ -78,9 +78,9 @@ final class Builtin extends LFunction {
break;
case PCALL: {
int n = vm.getArgCount();
int s = vm.lua_pcall( n-1, Lua.LUA_MULTRET );
int s = vm.pcall( n-1, Lua.LUA_MULTRET, 0 );
if ( s != 0 ) {
LValue v = vm.lua_tolvalue(-1);
LValue v = vm.topointer(-1);
vm.setResult( LBoolean.FALSE );
vm.push( v );
} else {