private static bool GetInterruptsPending(REngine engine) { var pointer = engine.DangerousGetHandle("R_interrupts_pending"); return(Convert.ToBoolean(Marshal.ReadInt32(pointer))); }
private static void SetInterruptsSuspended(REngine engine, bool value) { var pointer = engine.DangerousGetHandle("R_interrupts_suspended"); Marshal.WriteInt32(pointer, Convert.ToInt32(value)); }
private static bool GetInterruptsSuspended(REngine engine) { var pointer = engine.DangerousGetHandle("R_interrupts_suspended"); return Convert.ToBoolean(Marshal.ReadInt32(pointer)); }