/** Return argument i as a LuaThread if a lua thread, {@code defval} if nil, or throw a LuaError if any other type. * @param i the index of the argument to test, 1 is the first argument * @return LuaThread value if a thread, or defval if not supplied or nil * @exception LuaError if the argument is not a lua thread * */ public LuaThread optthread(int i, LuaThread defval) { return arg(i).optthread(defval); }
/** Return argument i as a LuaThread if a lua thread, {@code defval} if nil, or throw a LuaError if any other type. * @param i the index of the argument to test, 1 is the first argument * @return LuaThread value if a thread, or defval if not supplied or nil * @exception LuaError if the argument is not a lua thread * */ public LuaThread optthread(int i, LuaThread defval) { return arg(i).optthread(defval); }
/** Return argument i as a LuaThread if a lua thread, {@code defval} if nil, or throw a LuaError if any other type. * @param i the index of the argument to test, 1 is the first argument * @return LuaThread value if a thread, or defval if not supplied or nil * @exception LuaError if the argument is not a lua thread * */ public LuaThread optthread(int i, LuaThread defval) { return arg(i).optthread(defval); }