static internal object thread_priority_set(RBasic r, params object[] args) { NetRuby rb = r.ruby; long l = rb.InstanceOf(args[0]).ToInteger().ToLong(); if (Array.IndexOf(threadPtyVal, (int)l) < 0) { throw new ArgumentException("invalid thread priority value"); } ((RThread)r).Priority = (int)l; return(null); }
internal object ruby_equals(RBasic r, params object[] args) { return(r.Equals(ruby.InstanceOf(args[0]))); }