コード例 #1
0
ファイル: LabyPanel.cs プロジェクト: DamiSxM/Laby_WinForm
        public void Debug(string message)
        {
            System.Diagnostics.Debug.WriteLine(string.Format("LabyPanel.Debug : {0}", message));

            if (_debug.InvokeRequired)
            {
                DebugCallback d = new DebugCallback(Debug);
                Invoke(d, new object[] { message });
            }
            else
            {
                _debug.Text = message;
            }
        }
コード例 #2
0
        static void CommonInit(
            Action <string> writeCallback, Action <string> debugCallback,
            Action <WriteCallback, DebugCallback> initializer,
            List <GCHandle> locks
            )
        {
            var writeCallbackDelegate = new WriteCallback(writeCallback);
            var debugCallbackDelegate = new DebugCallback(debugCallback);

            locks.Clear();
            locks.Add(GCHandle.Alloc(writeCallbackDelegate));
            locks.Add(GCHandle.Alloc(debugCallbackDelegate));
            initializer(writeCallbackDelegate, debugCallbackDelegate);
        }
コード例 #3
0
ファイル: NativeOpenSsl.cs プロジェクト: VimalKumarS/mono-tls
		public NativeOpenSsl (bool isServer, bool debug, NativeOpenSslProtocol protocol)
		{
			this.isServer = isServer;
			this.enableDebugging = debug;
			this.protocol = protocol;

			readHandler = Read_internal;
			writeHandler = Write_internal;
			shutdownHandler = Shutdown_internal;

			if (debug)
				debug_callback = new DebugCallback (OnDebugCallback);

			message_callback = new MessageCallback (OnMessageCallback);

			handle = native_openssl_initialize (debug ? 1 : 0, protocol, debug_callback, message_callback);
			if (handle.IsInvalid)
				throw new ConnectionException ("Handle invalid.");

			var ret = native_openssl_create_context (handle, !isServer);
			CheckError (ret);
		}
コード例 #4
0
ファイル: NativeOpenSsl.cs プロジェクト: VimalKumarS/mono-tls
		extern static OpenSslHandle native_openssl_initialize (int debug, NativeOpenSslProtocol protocol, DebugCallback debug_callback, MessageCallback message_callback);
コード例 #5
0
ファイル: Interop.Easy.cs プロジェクト: Dmitry-Me/corefx
 public static extern CURLcode RegisterDebugCallback(
     SafeCurlHandle curl,
     DebugCallback callback,
     IntPtr userPointer,
     ref SafeCallbackHandle callbackHandle);
コード例 #6
0
 public static extern void RegisterLoggerCallback(DebugCallback callback);
コード例 #7
0
 /// <summary>
 /// Sets a debug callback
 /// </summary>
 /// <param name="callback"></param>
 /// <returns></returns>
 public ErrorCode SetDebugCallback(DebugCallback callback)
 {
     debugCallback = callback;
     Interface.DebugCallback = DebugCallback;
     return ErrorCode.OK;
 }
コード例 #8
0
ファイル: Debug.cs プロジェクト: ududsha/BreadPlayer
 public static Result Initialize(DebugFlags flags, DebugMode mode, DebugCallback callback, string filename)
 {
     return(FMOD_Debug_Initialize(flags, mode, callback, filename));
 }
コード例 #9
0
ファイル: SofaPhysicsAPI.cs プロジェクト: Elricai/SofaPhysics
 private static extern bool RegisterDebugCallback(DebugCallback callback);
コード例 #10
0
 static extern void InitInternal(WriteCallback writeCallback, DebugCallback debugCallback);
コード例 #11
0
ファイル: EDITOR_Node.cs プロジェクト: gbyh/XGame
        //Handles events, Mouse downs, ups etc.
        void HandleEvents(Event e)
        {
            //Node click
            if (e.type == EventType.MouseDown && Graph.allowClick && e.button != 2)
            {
                Undo.RegisterCompleteObjectUndo(graph, "Move Node");

                if (!e.control)
                {
                    Graph.currentSelection = this;
                }

                if (e.control)
                {
                    if (isSelected)
                    {
                        Graph.multiSelection.Remove(this);
                    }
                    else
                    {
                        Graph.multiSelection.Add(this);
                    }
                }

                if (e.button == 0)
                {
                    nodeIsPressed = true;
                }

                //Double click
                if (e.button == 0 && e.clickCount == 2)
                {
                    if (this is IGraphAssignable && (this as IGraphAssignable).nestedGraph != null)
                    {
                        graph.currentChildGraph = (this as IGraphAssignable).nestedGraph;
                        nodeIsPressed           = false;
                        DebugCallback.SyncSubTree(graph, (this as SubTree).ID);//new add
                    }
                    else if (this is ITaskAssignable && (this as ITaskAssignable).task != null)
                    {
                        EditorUtils.OpenScriptOfType((this as ITaskAssignable).task.GetType());
                    }
                    else
                    {
                        EditorUtils.OpenScriptOfType(this.GetType());
                    }
                    e.Use();
                }

                OnNodePicked();
            }

            //Mouse up
            if (e.type == EventType.MouseUp)
            {
                nodeIsPressed = false;
                if (graph.autoSort)
                {
                    Graph.PostGUI += delegate { SortConnectionsByPositionX(); };
                }
                OnNodeReleased();
            }
        }
コード例 #12
0
 internal static extern void SteamNetworkingSockets_SetDebugOutputFunction(int detailLevel, DebugCallback callback);
コード例 #13
0
 public static void SetDebugCallback(int detailLevel, DebugCallback callback)
 {
     Native.SteamNetworkingSockets_SetDebugOutputFunction(detailLevel, callback);
 }
コード例 #14
0
 public unsafe static void DebugMessageCallback(DebugCallback callback, IntPtr userParameter)
 => glDebugMessageCallback(callback, userParameter);
コード例 #15
0
 private static extern void dllz_register_callback_debuger(DebugCallback callback);