Java Code Examples for org.luaj.vm2.Varargs#checkclosure()
The following examples show how to use
org.luaj.vm2.Varargs#checkclosure() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DebugLib.java From VideoOS-Android-SDK with GNU General Public License v3.0 | 5 votes |
public Varargs invoke(Varargs args) { LuaClosure f1 = args.checkclosure(1); int n1 = args.checkint(2); LuaClosure f2 = args.checkclosure(3); int n2 = args.checkint(4); if (n1 < 1 || n1 > f1.upValues.length) argerror("index out of range"); if (n2 < 1 || n2 > f2.upValues.length) argerror("index out of range"); f1.upValues[n1 - 1] = f2.upValues[n2 - 1]; return NONE; }
Example 2
Source File: DebugLib.java From XPrivacyLua with GNU General Public License v3.0 | 5 votes |
public Varargs invoke(Varargs args) { LuaClosure f1 = args.checkclosure(1); int n1 = args.checkint(2); LuaClosure f2 = args.checkclosure(3); int n2 = args.checkint(4); if (n1 < 1 || n1 > f1.upValues.length) argerror("index out of range"); if (n2 < 1 || n2 > f2.upValues.length) argerror("index out of range"); f1.upValues[n1-1] = f2.upValues[n2-1]; return NONE; }
Example 3
Source File: DebugLib.java From HtmlNative with Apache License 2.0 | 5 votes |
public Varargs invoke(Varargs args) { LuaClosure f1 = args.checkclosure(1); int n1 = args.checkint(2); LuaClosure f2 = args.checkclosure(3); int n2 = args.checkint(4); if (n1 < 1 || n1 > f1.upValues.length) argerror("index out of range"); if (n2 < 1 || n2 > f2.upValues.length) argerror("index out of range"); f1.upValues[n1-1] = f2.upValues[n2-1]; return NONE; }
Example 4
Source File: DebugLib.java From luaj with MIT License | 5 votes |
public Varargs invoke(Varargs args) { LuaClosure f1 = args.checkclosure(1); int n1 = args.checkint(2); LuaClosure f2 = args.checkclosure(3); int n2 = args.checkint(4); if (n1 < 1 || n1 > f1.upValues.length) argerror("index out of range"); if (n2 < 1 || n2 > f2.upValues.length) argerror("index out of range"); f1.upValues[n1-1] = f2.upValues[n2-1]; return NONE; }