call method
Pops a value and calls it, may throw a LuaException.
If nresults is -1 this function will return a variable number of results.
Implementation
List<dynamic> call([
Iterable<dynamic> args = const [],
int results = -1,
]) {
var startTop = top;
pushAll(args);
if (lua_pcall(L, args.length, results, 0) != 0) {
throw LuaException(popString());
}
return popValues(top - (startTop - 1));
}