public static void RunMsgLoop() { #if WINDOWS PInvokeWindows.MSG msg; while (PInvokeWindows.GetMessage(out msg, IntPtr.Zero, 0, 0) != 0) { PInvokeWindows.TranslateMessage(ref msg); PInvokeWindows.DispatchMessage(ref msg); } #elif GTKMONO PInvokeGTK.gtk_main(); #endif }
public static void RunMsgLoop() { #if WINDOWS PInvokeWindows.MSG msg; while (PInvokeWindows.GetMessage(out msg, IntPtr.Zero, 0, 0) != 0) { PInvokeWindows.TranslateMessage(ref msg); PInvokeWindows.DispatchMessage(ref msg); } #elif GTKMONO PInvokeGTK.gtk_main(); #elif OSX throw new Exception("Do not call PInvokeUtils.RunMsgLoop() on OSX."); #endif }