コード例 #1
0
        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);
        }
コード例 #2
0
 internal object ruby_equals(RBasic r, params object[] args)
 {
     return(r.Equals(ruby.InstanceOf(args[0])));
 }