예제 #1
0
        private static bool GetInterruptsPending(REngine engine)
        {
            var pointer = engine.DangerousGetHandle("R_interrupts_pending");

            return(Convert.ToBoolean(Marshal.ReadInt32(pointer)));
        }
예제 #2
0
        private static void SetInterruptsSuspended(REngine engine, bool value)
        {
            var pointer = engine.DangerousGetHandle("R_interrupts_suspended");

            Marshal.WriteInt32(pointer, Convert.ToInt32(value));
        }
예제 #3
0
 private static bool GetInterruptsSuspended(REngine engine)
 {
     var pointer = engine.DangerousGetHandle("R_interrupts_suspended");
     return Convert.ToBoolean(Marshal.ReadInt32(pointer));
 }